From 11b5d2614345f61f10020c1a90a740d7ef0e0526 Mon Sep 17 00:00:00 2001 From: EoD <293499+EoD@users.noreply.github.com> Date: Thu, 1 May 2025 16:02:56 +0000 Subject: [PATCH 1/3] fix gradle mod dependencies This fixes ./gradlew runServer --- build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 7ca0ce5..75ac873 100644 --- a/build.gradle +++ b/build.gradle @@ -149,10 +149,10 @@ dependencies { // Example mod dependency using a mod jar from ./libs with a flat dir repository // This maps to ./libs/coolmod-${mc_version}-${coolmod_version}.jar // The group id is ignored when searching -- in this case, it is "blank" - implementation fg.deobf("curse.maven:curios-309927:5266541") - implementation fg.deobf("curse.maven:MySQL-561280:3685108") - implementation fg.deobf("curse.maven:sophisticated-backpacks-422301:6303388") - implementation fg.deobf("curse.maven:sophisticated-core-618298:6317048") + compileOnly fg.deobf("curse.maven:curios-309927:5266541") + runtimeOnly fg.deobf("curse.maven:MySQL-561280:3685108") + compileOnly fg.deobf("curse.maven:sophisticated-backpacks-422301:6303388") + compileOnly fg.deobf("curse.maven:sophisticated-core-618298:6317048") // For more info: // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html From 23314859703bb017f7dffe25453d600a8bb6f4df Mon Sep 17 00:00:00 2001 From: EoD <293499+EoD@users.noreply.github.com> Date: Fri, 25 Apr 2025 21:14:58 +0000 Subject: [PATCH 2/3] make sure the MySQL dependency is installed --- src/main/resources/META-INF/mods.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 96860e3..d332f9b 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -66,6 +66,14 @@ description='''${mod_description}''' ordering="NONE" side="BOTH" +# Dependency for MySQL +[[dependencies.${mod_id}]] + modId="mysql_jdbc" + mandatory=true + versionRange="[8.0.33+20230506,)" + ordering="NONE" + side="SERVER" + # Features are specific properties of the game environment, that you may want to declare you require. This example declares # that your mod requires GL version 3.2 or higher. Other features will be added. They are side aware so declaring this won't # stop your mod loading on the server for example. From 8c13de490e62c54b024c476044c15668e7688df9 Mon Sep 17 00:00:00 2001 From: EoD <293499+EoD@users.noreply.github.com> Date: Fri, 25 Apr 2025 21:15:27 +0000 Subject: [PATCH 3/3] bump MySQL dependency to 8.0.33+20230506 Fixed "incompatible mod set" warnings on server list See https://github.com/kosmolot-mods/minecraft-mysql-jdbc/releases/tag/8.0.30%2B20220916 --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 75ac873..32330ea 100644 --- a/build.gradle +++ b/build.gradle @@ -150,7 +150,7 @@ dependencies { // This maps to ./libs/coolmod-${mc_version}-${coolmod_version}.jar // The group id is ignored when searching -- in this case, it is "blank" compileOnly fg.deobf("curse.maven:curios-309927:5266541") - runtimeOnly fg.deobf("curse.maven:MySQL-561280:3685108") + runtimeOnly fg.deobf("curse.maven:MySQL-561280:4684944") compileOnly fg.deobf("curse.maven:sophisticated-backpacks-422301:6303388") compileOnly fg.deobf("curse.maven:sophisticated-core-618298:6317048")