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
|
Description: attempt build on Java versions >= 11
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1011776
Author: tony mancill <tmancill@debian.org>
--- a/opentest4j/settings.gradle
+++ b/opentest4j/settings.gradle
@@ -1,7 +1,7 @@
rootProject.name = 'opentest4j'
// Require Java 11
-if (!JavaVersion.current().java11) {
+if (!JavaVersion.current().isJava11Compatible()) {
throw new GradleException('The OpenTest4J build requires Java 11. ' +
"Currently executing with Java ${JavaVersion.current()}.")
}
--- a/opentest4j/build.gradle
+++ b/opentest4j/build.gradle
@@ -31,7 +31,7 @@
}
compileJava {
- options.compilerArgs = ['--release', '6']
+ options.compilerArgs = ['--release', '8']
}
task compileModule(type: JavaCompile) {
|