File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 71
71
compileJava {
72
72
exclude ' module-info.java'
73
73
// Required to be compatible with JDK 8+
74
- options. release = 11
74
+ options. release = 8
75
75
}
76
76
77
77
javadoc {
@@ -130,7 +130,7 @@ task compileModuleInfoJava(type: JavaCompile) {
130
130
}
131
131
132
132
compileTestJava {
133
- options. release = 11
133
+ options. release = 8
134
134
options. compilerArgs = [" -Xlint:deprecation" ]
135
135
}
136
136
@@ -142,14 +142,6 @@ def testJava8 = tasks.register('testJava8', Test) {
142
142
languageVersion = JavaLanguageVersion . of(8 )
143
143
})
144
144
shouldRunAfter(tasks. named(' test' ))
145
-
146
- doFirst {
147
- tasks. compileJava. options. release. set(8 )
148
- }
149
-
150
- doLast {
151
- tasks. compileJava. options. release. set(11 )
152
- }
153
145
}
154
146
155
147
def testJava17 = tasks. register(' testJava17' , Test ) {
@@ -162,6 +154,10 @@ def testJava17 = tasks.register('testJava17', Test) {
162
154
shouldRunAfter(tasks. named(' test' ))
163
155
}
164
156
157
+ // tasks.named('compileTestJava').configure {
158
+ // options.release.set(11)
159
+ // }
160
+
165
161
tasks. named(' check' ) {
166
162
dependsOn(testJava8)
167
163
dependsOn(testJava17)
You can’t perform that action at this time.
0 commit comments