Skip to content

Commit

Permalink
Added environment variable check
Browse files Browse the repository at this point in the history
  • Loading branch information
fulminazzo committed Apr 5, 2024
1 parent 2005662 commit 6535404
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ allprojects {
else if (projectName.contains("obsolete")) environment VERSION_VARIABLE, obsolete_version
}

println "Testing ${projectName} with Minecraft ${System.getenv(VERSION_VARIABLE)}"
def env = System.getenv(VERSION_VARIABLE)
if (env != null) println "Testing ${projectName} with Minecraft ${env}"
useJUnitPlatform()
}

Expand Down

0 comments on commit 6535404

Please sign in to comment.