Skip to content

Commit

Permalink
Fix build JDK version check to match documentation
Browse files Browse the repository at this point in the history
The current documentation at
https://badass-runtime-plugin.beryx.org/releases/1.13.0/ states 'The
plugin requires Java 11 and Gradle 7.0 or newer. [...]'. Building with
JDK 17 actually works.
  • Loading branch information
sirhcel committed Jan 19, 2024
1 parent bec21b3 commit 1e23125
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ plugins {
id "org.ajoberstar.git-publish" version "4.1.1"
}

if(JavaVersion.current() != JavaVersion.VERSION_11) {
throw new GradleException("Please use Java 11 to execute this Gradle build")
if(!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_11)) {
throw new GradleException("Please use Java 11 or above to execute this Gradle build")
}

project.version.with {
Expand Down

0 comments on commit 1e23125

Please sign in to comment.