forked from rusefi/rusefi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (44 loc) · 1.25 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
apply from: 'dependencies.gradle'
allprojects {
repositories {
mavenCentral()
}
plugins.withType(JavaPlugin) {
java {
// TS still comes with 1.8 and we have a plugin, lets build compatible
sourceCompatibility = '8'
targetCompatibility = '8'
// [tag:java8]
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
dependencies {
implementation global_libs.annotations
testImplementation global_libs.junit5
testImplementation global_libs.junit5engine
}
test {
// Enable JUnit 5
useJUnitPlatform()
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
tasks.withType(JavaExec).configureEach {
if (name.endsWith("main()")) {
// https://github.com/gradle/gradle/issues/21364
notCompatibleWithConfigurationCache("JavaExec created by IntelliJ")
}
}
}
tasks.named('wrapper') {
distributionType = Wrapper.DistributionType.ALL
}
// gradlew allDeps
subprojects {
task allDeps(type: DependencyReportTask) {}
}