diff --git a/build.gradle b/build.gradle index 95265dd7b..047432444 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id "java-library" id "com.gtnewhorizons.retrofuturagradle" version "1.3.26" + id "cl.franciscosolis.blossom-extended" version "1.3.1" } // Set the toolchain version to decouple the Java we run Gradle with from the Java used to compile and run the mod @@ -26,6 +27,10 @@ tasks.deobfuscateMergedJarToSrg.configure {accessTransformerFiles.from("src/main repositories { maven { url "https://maven.cleanroommc.com" } + maven { + name 'SpongePowered Maven' + url 'https://repo.spongepowered.org/maven' + } maven { url "https://cursemaven.com" content { @@ -39,7 +44,9 @@ dependencies { annotationProcessor "com.google.guava:guava:32.1.2-jre" annotationProcessor "com.google.code.gson:gson:2.8.9" - def mixinBooter = modUtils.enableMixins("zone.rong:mixinbooter:8.9", "sodium.mixins.refmap.json") + implementation("zone.rong:mixinbooter:8.9") + + def mixinBooter = modUtils.enableMixins("org.spongepowered:mixin:0.8.3", "sodium.mixins.refmap.json") api (mixinBooter) { transitive = false } @@ -61,6 +68,16 @@ jar { } } -processResources { - from "common/src/main/resources" +processResources.configure { + blossom { + String mcmod = "src/main/resources/mcmod.info" + String mcmeta = "src/main/resources/pack.mcmeta" + replaceToken("mod_id", mod_id, mcmod) + replaceToken("mod_name", mod_name, mcmod) + replaceToken("mod_description", mod_description, mcmod) + replaceToken("mod_version", mod_version, mcmod) + replaceToken("mod_authors", mod_authors, mcmod) + replaceToken("minecraft_version", minecraft_version, mcmod) + replaceToken("mod_id", mod_id, mcmeta) + } } \ No newline at end of file