-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
49 lines (43 loc) · 1.69 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
43
44
45
46
47
48
49
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: rootDir.toString() + '/config.gradle'
buildscript {
repositories {
maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
maven { url "https://mirrors.tencent.com/repository/maven/thirdparty-snapshots/" }
maven { url "https://repo1.maven.org/maven2" }
maven { url "https://s01.oss.sonatype.org/content/groups/public" }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.1'
classpath "com.bihe0832.android:GradleDependenciesCheck:4.1.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10"
}
}
task clean(type: Delete) {
println("clean " + rootProject.buildDir)
delete rootProject.buildDir
}
allprojects {
repositories {
maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
maven { url "https://mirrors.tencent.com/repository/maven/thirdparty-snapshots/" }
maven { url "https://repo1.maven.org/maven2" }
maven { url "https://s01.oss.sonatype.org/content/groups/public" }
flatDir {
dirs './../libs/'
}
}
}
subprojects {
afterEvaluate { Project subproject ->
if (subproject.name.startsWith("Lib")) {
subproject.getTasks().create("copyAAR", Copy.class) {
group = "zixieDev"
from 'build/outputs/aar/' + subproject.name + '-release.aar'
from 'build/outputs/mapping/release/mapping.txt'
into "./../libs/"
}
subproject.getTasks().getByName('copyAAR').dependsOn("assembleRelease")
}
}
}