Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
57 lines (50 loc) · 1.9 KB
/
Copy pathbuild.gradle
File metadata and controls
57 lines (50 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* Copyright 2026 Hangzhou Yunshenchu Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '2.2.0'
repositories {
// 添加阿里云 maven 地址
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/central' }
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.8.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
configurations.configureEach {
resolutionStrategy {
// 强制统一 Kotlin stdlib 版本,避免与第三方库引入的版本冲突
force "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
force "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
}
repositories {
// 添加阿里云 maven 地址
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/central' }
google()
mavenCentral()
maven { url 'https://jitpack.io' }
// ControllerSDK 依赖的本地 AAR (rcsdk-v1.9.1.aar)
// 在根项目声明使所有子模块(如 SimpleDemo)均可解析传递依赖
flatDir { dirs "${rootDir}/ControllerSDK/libs" }
}
}
tasks.register('clean', Delete) {
delete rootProject.layout.buildDirectory
}