-
-
Notifications
You must be signed in to change notification settings - Fork 352
/
Copy pathbuild.gradle
69 lines (62 loc) · 1.88 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.7.3' apply false
id 'com.android.library' version '8.7.3' apply false
id 'org.jetbrains.kotlin.android' version '2.0.20' apply false
id 'com.google.devtools.ksp' version '2.0.10-1.0.24' apply false
id 'org.jetbrains.kotlin.plugin.compose' version '2.0.20' apply false
}
apply from: file('config.gradle')
//buildscript {
//
// repositories {
// google()
// jcenter()
// mavenCentral()
// maven {
// url('repo')
// }
// maven {
// url "https://plugins.gradle.org/m2/"
// }
// }
// dependencies {
//
// classpath "com.alibaba:arouter-register:$arouter_register"
//// classpath "com.engineer.plugin:phoenix:1.0.7"
// classpath "gradle.plugin.com.dorongold.plugins:task-tree:1.3.1"
//
// }
//}
task clean(type: Delete) {
delete rootProject.buildDir
delete rootDir.toString() + File.separator + apkDir
delete rootDir.toString() + File.separator + "repo"
}
subprojects { sub ->
sub.beforeEvaluate {
project
println "#### Evaluate before of " + project.path
}
sub.afterEvaluate {
project
println "#### Evaluate after of " + project.path
}
}
allprojects {
tasks.withType(Test).configureEach {
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
if (!project.hasProperty("createReports")) {
reports.html.required = false
reports.junitXml.required = false
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile).tap {
configureEach {
options.compilerArgs << "-Xmaxerrs" << "4000"
options.compilerArgs << "-Xmaxwarns" << "4000"
}
}
}
}