-
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathbuild.gradle
More file actions
43 lines (37 loc) · 1.14 KB
/
build.gradle
File metadata and controls
43 lines (37 loc) · 1.14 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
apply from: 'dependencies.gradle'
allprojects {
repositories {
mavenCentral()
}
plugins.withType(JavaPlugin) {
dependencies {
implementation global_libs.annotations
testImplementation global_libs.junit
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
// Common shadowJar configuration for all modules that use the shadow plugin
subprojects {
pluginManager.withPlugin('com.gradleup.shadow') {
tasks.named('shadowJar').configure {
// Exclude compile-only annotations and test dependencies from fat jars
dependencies {
exclude(dependency(global_libs.jsr305))
// autotest uses JUnit at runtime for test automation
if (project.name != 'autotest') {
exclude(dependency(global_libs.junit))
}
exclude(dependency(global_libs.annotations))
}
}
}
}
// gradlew allDeps
subprojects {
task allDeps(type: DependencyReportTask) {}
}