Skip to content

Commit fd9e0fb

Browse files
committed
Fix "minimum JDK" version check
1 parent 9ed9bda commit fd9e0fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

local-build-plugins/src/main/java/org/hibernate/orm/toolchains/JdkVersionConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public static JdkVersionConfig createVersionConfig(
187187
// We disable toolchains for convenience, so that anyone can just run the build with their own JDK
188188
// without any additional options and without downloading the whole JDK.
189189

190-
if ( gradleJdkVersion.asInt() > minSupportedJdkVersion.asInt() ) {
190+
if ( gradleJdkVersion.asInt() < minSupportedJdkVersion.asInt() ) {
191191
throw new GradleException("This build requires at least JDK " + minSupportedJdkVersion + ", but you are using JDK " + gradleJdkVersion.asInt());
192192
}
193193

0 commit comments

Comments
 (0)