Skip to content

Commit d6ddffb

Browse files
author
gefeili
committed
update build.gradle in prov for java 17, by using targetCompatibility and sourceCompatibility, as options.release does not work.
1 parent d8d7a39 commit d6ddffb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

prov/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ compileJava15Java {
107107
}
108108

109109
compileJava17Java {
110-
options.release = 17
110+
targetCompatibility = 17
111+
sourceCompatibility = 17
111112
options.sourcepath = files(['src/main/java', 'src/main/jdk17'])
112113
}
113114

@@ -265,7 +266,8 @@ compileTest15Java {
265266
}
266267

267268
compileTest17Java {
268-
options.release = 17
269+
targetCompatibility = 17
270+
sourceCompatibility = 17
269271
options.sourcepath = files(['src/test/java', 'src/test/jdk17'])
270272
}
271273

0 commit comments

Comments
 (0)