forked from Tencent/Shadow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (39 loc) · 1.95 KB
/
build.gradle
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
//buildscript不能从其他gradle文件中apply,所以这段buildscript脚本存在于多个子构建中。
//请更新buildscript时同步更新。
buildscript {
ext.kotlin_version = '1.4.10'
ext.build_gradle_version = '4.0.2'
repositories {
if (!System.getenv().containsKey("DISABLE_TENCENT_MAVEN_MIRROR")) {
maven { url 'https://mirrors.tencent.com/nexus/repository/maven-public/' }
} else {
google()
jcenter()
}
}
dependencies {
classpath "com.android.tools.build:gradle:$build_gradle_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply from: 'buildScripts/gradle/common.gradle'
apply from: "buildScripts/gradle/maven.gradle"
task clean(type: Delete) {
delete rootProject.buildDir
dependsOn gradle.includedBuild('coding').task(':checks:clean')
dependsOn gradle.includedBuild('coding').task(':lint:clean')
dependsOn gradle.includedBuild('coding').task(':code-generator:clean')
dependsOn gradle.includedBuild('core').task(':gradle-plugin:clean')
dependsOn gradle.includedBuild('core').task(':common:clean')
dependsOn gradle.includedBuild('core').task(':loader:clean')
dependsOn gradle.includedBuild('core').task(':manager:clean')
dependsOn gradle.includedBuild('core').task(':runtime:clean')
dependsOn gradle.includedBuild('core').task(':activity-container:clean')
dependsOn gradle.includedBuild('core').task(':transform:clean')
dependsOn gradle.includedBuild('core').task(':transform-kit:clean')
dependsOn gradle.includedBuild('dynamic').task(':dynamic-host:clean')
dependsOn gradle.includedBuild('dynamic').task(':dynamic-loader:clean')
dependsOn gradle.includedBuild('dynamic').task(':dynamic-loader-impl:clean')
dependsOn gradle.includedBuild('dynamic').task(':dynamic-manager:clean')
}