generated from AndroidAppFactory/Template-AAF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
81 lines (70 loc) · 3.04 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: rootDir.toString() + '/config.gradle'
apply from: rootDir.toString() + '/build_module.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/'
}
}
afterEvaluate { Project subproject ->
if (subproject.name == rootProject.name) {
rootProject.getTasks().create("showInfo") {
group = "zixieDev"
doLast {
System.err.println("\n\n >>>>>>>>>>>>>>>>>>>>>>>>>>>> AndroidAPPFactory <<<<<<<<<<<<<<<<<<<<<<<<<<<<<")
System.err.println("|\n| AAF 相关信息可以参考文档:")
System.err.println("|\n| AAF文档:https://android.bihe0832.com/doc/")
System.err.println("|\n| AAF事例:https://android.bihe0832.com/samples/")
System.err.println("|\n >>>>>>>>>>>>>>>>>>>>>>>>>>> AndroidAPPFactory <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<")
}
}
}
}
}
subprojects {
// apply plugin: 'com.bihe0832.gradleDependenciesCheck'
//
// GradleDependenciesCheckConfig {
// showResultType = 1
// excludePackage = "com.android.support;org.jetbrains.kotlin;android.arch.lifecycle"
// }
afterEvaluate { Project subproject ->
if (zixieIsDebug) println("subprojects afterEvaluate : " + subproject.name)
zixieAutoDependencies(subproject.name)
zixieLocalDependencies(subproject.name, subproject.getProjectDir().absolutePath + "/libs")
subproject.getTasks().getByName('clean').doFirst {
delete "build"
}
if (!subproject.name.startsWith("Pub") || subproject.name != "APPTest") {
// subproject.getTasks().create("copyAAR", Copy.class) {
// group = "zixieDev"
// from 'build/outputs/aar/' + module.name + '-release.aar'
// into "./../libs/"
// }
//
// subproject.getTasks().getByName('copyAAR').dependsOn("assembleRelease")
}
}
}