-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
50 lines (41 loc) · 965 Bytes
/
build.gradle
File metadata and controls
50 lines (41 loc) · 965 Bytes
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
plugins {
id "com.diffplug.spotless" version "6.11.0" apply false
}
ext {
externalizedPropertiesVersion = "1.0.0-beta"
}
allprojects {
group = "io.github.joel-jeremy.externalized-properties.samples"
version = "${externalizedPropertiesVersion}"
repositories {
mavenLocal()
mavenCentral()
}
}
subprojects {
apply plugin: "java"
apply plugin: "application"
apply plugin: "com.diffplug.spotless"
dependencies {
implementation "io.github.joel-jeremy.externalized-properties:externalized-properties-core:${externalizedPropertiesVersion}"
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
compileJava {
options.release.set(11)
}
test {
useJUnitPlatform()
}
spotless {
enforceCheck System.properties.containsKey("spotless")
java {
// Generated code should not be subjected to spotless.
target "src/*/java/**/*.java"
googleJavaFormat()
}
}
}