File tree Expand file tree Collapse file tree
src/test/java/zone/moddev/mc/orespawn Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,5 +53,7 @@ loader_name=forge
5353loader_code =1
5454java_version =21
5555java_toolchain_version =21.0.7+6
56+ # actions/setup-java names this exact Temurin build with its catalog LTS suffix.
57+ java_setup_version =21.0.7+6.0.LTS
5658gradle_java_version =21
5759curseforge_project_id =245586
Original file line number Diff line number Diff line change @@ -23,6 +23,16 @@ void usesOreSpawnSpecificMavenNamespace() throws Exception {
2323 assertEquals ("zone.moddev.mc.orespawn" , properties .getProperty ("mod_group" ));
2424 }
2525
26+ @ Test
27+ void declaresTheHostedSelectorForTheExactTemurinToolchain () throws Exception {
28+ Properties properties = new Properties ();
29+ try (InputStream input = Files .newInputStream (Paths .get ("gradle.properties" ))) {
30+ properties .load (input );
31+ }
32+ assertEquals ("21.0.7+6" , properties .getProperty ("java_toolchain_version" ));
33+ assertEquals ("21.0.7+6.0.LTS" , properties .getProperty ("java_setup_version" ));
34+ }
35+
2636 @ Test
2737 void verifiesGeneratedMavenCoordinatesBeforeCheckAndPublication () throws Exception {
2838 Path buildFile = Paths .get ("build.gradle" );
You can’t perform that action at this time.
0 commit comments