Skip to content

Commit 2ffd795

Browse files
artembilanspring-builds
authored andcommitted
Rename javaVersion project property to testJavaVersion
For a proper context expose of the property it is used for: only for testing (cherry picked from commit 73806b0)
1 parent fd5538d commit 2ffd795

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ configure(javaProjects) { subproject ->
274274
useJUnitPlatform()
275275

276276
javaLauncher = javaToolchains.launcherFor {
277-
languageVersion = JavaLanguageVersion.of(project.hasProperty('javaVersion') ? project.javaVersion as int : 25)
277+
languageVersion = JavaLanguageVersion.of(project.findProperty('testJavaVersion') ?: 25)
278278
}
279279

280280
jvmArgs '--enable-native-access=ALL-UNNAMED'

0 commit comments

Comments
 (0)