Skip to content

Commit 0789103

Browse files
authored
Merge pull request #16 from SmushyTaco/7.3
Fix Windows Workflow
2 parents ed5d2a7 + ac1ca92 commit 0789103

File tree

4 files changed

+30
-22
lines changed

4 files changed

+30
-22
lines changed

build.gradle.kts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ val btaChannel = providers.gradleProperty("bta_channel")
2323
val btaVersion = providers.gradleProperty("bta_version")
2424

2525
val loaderVersion = providers.gradleProperty("loader_version")
26+
val legacyLwjglVersion = providers.gradleProperty("legacy_lwjgl_version")
2627

2728
val halplibeVersion = providers.gradleProperty("halplibe_version")
2829
val modMenuVersion = providers.gradleProperty("mod_menu_version")
@@ -79,7 +80,7 @@ dependencies {
7980
modImplementation("turniplabs:halplibe:${halplibeVersion.get()}")
8081
modImplementation("turniplabs:modmenu-bta:${modMenuVersion.get()}")
8182
modImplementation("net.fabricmc:fabric-loader:${loaderVersion.get()}")
82-
modImplementation("com.github.Better-than-Adventure:legacy-lwjgl3:1.0.5")
83+
modImplementation("com.github.Better-than-Adventure:legacy-lwjgl3:${legacyLwjglVersion.get()}")
8384

8485
implementation(platform("org.lwjgl:lwjgl-bom:${lwjglVersion.get()}"))
8586
implementation("org.slf4j:slf4j-api:${slf4jApiVersion.get()}")
@@ -165,10 +166,13 @@ tasks {
165166
)
166167
)
167168
}
168-
filesMatching("*.mixins.json") { expand(mapOf("java" to stringJavaVersion)) }
169+
filesMatching("**/*.mixins.json") { expand(mapOf("java" to stringJavaVersion)) }
169170
}
170171
java {
171-
toolchain.languageVersion = JavaLanguageVersion.of(javaVersion.get())
172+
toolchain {
173+
languageVersion = JavaLanguageVersion.of(javaVersion.get())
174+
vendor = JvmVendorSpec.ADOPTIUM
175+
}
172176
sourceCompatibility = JavaVersion.toVersion(javaVersion.get().toInt())
173177
targetCompatibility = JavaVersion.toVersion(javaVersion.get().toInt())
174178
withSourcesJar()

gradle.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ mod_name = examplemod
2828
mod_menu_version = 3.0.0
2929
# Check this on https://github.com/Turnip-Labs/bta-halplibe/releases/latest/
3030
halplibe_version = 5.3.1
31+
# Check this on https://github.com/Better-than-Adventure/legacy-lwjgl3/releases/latest/
32+
legacy_lwjgl_version = 1.0.6
3133
##########################################################################
3234
# 3rd Party Dependencies
3335
# Check this on https://central.sonatype.com/artifact/org.slf4j/slf4j-api/
@@ -43,3 +45,7 @@ commons_lang3_version = 3.19.0
4345
# This should match the version used by the current BTA release.
4446
lwjgl_version = 3.3.3
4547
##########################################################################
48+
# Plugin Dependency
49+
# Check this on https://plugins.gradle.org/plugin/org.gradle.toolchains.foojay-resolver-convention/
50+
foojay_resolver_version = 1.0.0
51+
##########################################################################

settings.gradle.kts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ pluginManagement {
88
maven("https://maven.glass-launcher.net/babric") { name = "Babric" }
99
maven("https://maven.thesignalumproject.net/infrastructure") { name = "SignalumMavenInfrastructure" }
1010
}
11+
val foojayResolverVersion = providers.gradleProperty("foojay_resolver_version")
1112
val loomVersion = providers.gradleProperty("loom_version")
12-
plugins { id("fabric-loom").version(loomVersion.get()) }
13+
plugins {
14+
id("org.gradle.toolchains.foojay-resolver-convention").version(foojayResolverVersion.get())
15+
id("fabric-loom").version(loomVersion.get())
16+
}
17+
}
18+
plugins {
19+
id("org.gradle.toolchains.foojay-resolver-convention")
1320
}

src/main/java/turniplabs/examplemod/ExampleMod.java

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,23 @@
66
import turniplabs.halplibe.util.GameStartEntrypoint;
77
import turniplabs.halplibe.util.RecipeEntrypoint;
88

9-
109
public class ExampleMod implements ModInitializer, RecipeEntrypoint, GameStartEntrypoint {
11-
public static final String MOD_ID = "examplemod";
12-
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
13-
@Override
14-
public void onInitialize() {
15-
LOGGER.info("ExampleMod initialized.");
16-
}
17-
10+
public static final String MOD_ID = "examplemod";
11+
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
1812
@Override
19-
public void onRecipesReady() {
20-
13+
public void onInitialize() {
14+
LOGGER.info("ExampleMod initialized.");
2115
}
2216

2317
@Override
24-
public void initNamespaces() {
25-
26-
}
18+
public void onRecipesReady() {}
2719

2820
@Override
29-
public void beforeGameStart() {
30-
31-
}
21+
public void initNamespaces() {}
3222

3323
@Override
34-
public void afterGameStart() {
24+
public void beforeGameStart() {}
3525

36-
}
26+
@Override
27+
public void afterGameStart() {}
3728
}

0 commit comments

Comments
 (0)