We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fd4a59 commit e29afbbCopy full SHA for e29afbb
src/funcTest/resources/java-project-with-feature-previews/build.gradle
@@ -25,8 +25,10 @@ repositories {
25
// Configure Java compilation tasks to enable feature previews
26
tasks.withType(JavaCompile).configureEach {
27
options.compilerArgs.add("--enable-preview")
28
+ options.release = 22
29
javaCompiler.set(javaToolchains.compilerFor {
- // 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.
32
languageVersion.set(JavaLanguageVersion.of(22))
33
})
34
}
0 commit comments