We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b91f9e6 commit ac1eb59Copy full SHA for ac1eb59
build.gradle
@@ -51,8 +51,7 @@ subprojects {
51
}
52
53
54
-
55
- compileJava {
+ def compileTasks = {
56
options.encoding = 'UTF-8'
57
58
// Makes spotlessApply task run on every compile/build.
@@ -63,16 +62,8 @@ subprojects {
63
62
targetCompatibility = JavaVersion.VERSION_17
64
65
66
- compileTestJava {
67
- options.encoding = 'UTF-8'
68
69
- // Makes spotlessApply task run on every compile/build.
70
- dependsOn 'spotlessApply'
71
72
- // Nails the Java-Version of every Subproject
73
- sourceCompatibility = JavaVersion.VERSION_17
74
- targetCompatibility = JavaVersion.VERSION_17
75
- }
+ compileJava(compileTasks)
+ compileTestJava(compileTasks)
76
77
spotless {
78
java {
0 commit comments