Skip to content

Commit e29afbb

Browse files
committed
re-add 22
1 parent 6fd4a59 commit e29afbb

File tree

1 file changed

+3
-1
lines changed
  • src/funcTest/resources/java-project-with-feature-previews

1 file changed

+3
-1
lines changed

src/funcTest/resources/java-project-with-feature-previews/build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ repositories {
2525
// Configure Java compilation tasks to enable feature previews
2626
tasks.withType(JavaCompile).configureEach {
2727
options.compilerArgs.add("--enable-preview")
28+
options.release = 22
2829
javaCompiler.set(javaToolchains.compilerFor {
29-
// Using 15 so that we can try a feature preview
30+
// Using 22 so that we can try a feature preview, because
31+
// --enable-preview does not work with 21.
3032
languageVersion.set(JavaLanguageVersion.of(22))
3133
})
3234
}

0 commit comments

Comments
 (0)