Skip to content

Commit 168ae28

Browse files
committed
Declare hosted Java setup selector
1 parent 7e90ea8 commit 168ae28

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎gradle.properties‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,7 @@ loader_name=forge
5353
loader_code=1
5454
java_version=21
5555
java_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
5658
gradle_java_version=21
5759
curseforge_project_id=245586

‎src/test/java/zone/moddev/mc/orespawn/ReleaseWorkflowContractTest.java‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)