Skip to content

Commit 4d16e92

Browse files
committed
chore(build): Enforce J17 requirement for building
1 parent 19c7088 commit 4d16e92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

settings.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pluginManagement {
99
}
1010

1111
plugins {
12-
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.10.0'
12+
id 'org.gradle.toolchains.foojay-resolver-convention' version '1.0.0'
1313
}
1414

1515
dependencyResolutionManagement {
@@ -29,9 +29,9 @@ dependencyResolutionManagement {
2929

3030
enableFeaturePreview "TYPESAFE_PROJECT_ACCESSORS"
3131

32-
if (!JavaVersion.current().java11Compatible) {
32+
if (JavaVersion.current() < JavaVersion.VERSION_17) {
3333
throw new GradleException("""\
34-
Configurate requires at least Java 11 to build, but you are running ${JavaVersion.current()}.
34+
Configurate requires at least Java 17 to build, but you are running ${JavaVersion.current()}.
3535
3636
Your JAVA_HOME is currently: ${System.getenv("JAVA_HOME")}
3737
Is this correct?

0 commit comments

Comments
 (0)