Skip to content

Commit

Permalink
Update NeoForge1205Test.groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jab125 committed Apr 28, 2024
1 parent d8f36ff commit e4749ab
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ import static org.gradle.testkit.runner.TaskOutcome.SUCCESS

class NeoForge1205Test extends Specification implements GradleProjectTestTrait {
@Unroll
def "build #mcVersion #neoforgeVersion #mappings"() {
if (Integer.valueOf(System.getProperty("java.version").split("\\.")[0]) < 21) return // Do not run this test with Java 17
def "build #mcVersion #neoforgeVersion #mappings #patches"() {
if (Integer.valueOf(System.getProperty("java.version").split("\\.")[0]) < 21) {
println("This test requires Java 21. Currently you have Java ${System.getProperty("java.version")}.")
return
}

setup:
def gradle = gradleProject(project: "neoforge/1205", version: DEFAULT_GRADLE)
Expand Down

0 comments on commit e4749ab

Please sign in to comment.