File: opentest4j-05-build-on-java-17.patch

package info (click to toggle)
jtreg7 7.5.1%2B1%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 51,224 kB
  • sloc: java: 409,123; xml: 8,266; sh: 1,966; ansic: 1,084; exp: 689; makefile: 387; javascript: 162; cpp: 120
file content (26 lines) | stat: -rw-r--r-- 761 bytes parent folder | download | duplicates (3)
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) {