diff --git a/Fabric/build.gradle b/Fabric/build.gradle index 13bf4d3..8b3ca88 100644 --- a/Fabric/build.gradle +++ b/Fabric/build.gradle @@ -1,9 +1,9 @@ plugins { id 'fabric-loom' version '1.3-SNAPSHOT' id 'idea' + id "me.hypherionmc.modutils.modpublisher" version "1.0.+" } -apply plugin: 'me.hypherionmc.modutils.modpublisher' apply plugin: 'com.github.johnrengelman.shadow' apply plugin: 'maven-publish' @@ -153,5 +153,6 @@ publisher { } } -publishMod.dependsOn(build) +publishCurseforge.dependsOn(remapJar) +publishModrinth.dependsOn(remapJar) diff --git a/Forge/build.gradle b/Forge/build.gradle index 0e8cc58..a440117 100644 --- a/Forge/build.gradle +++ b/Forge/build.gradle @@ -1,9 +1,12 @@ +plugins { + id "me.hypherionmc.modutils.modpublisher" version "1.0.+" +} + apply plugin: 'java' apply plugin: 'net.minecraftforge.gradle' apply plugin: 'eclipse' apply plugin: 'org.spongepowered.mixin' apply plugin: 'maven-publish' -apply plugin: 'me.hypherionmc.modutils.modpublisher' apply plugin: 'com.github.johnrengelman.shadow' archivesBaseName = "${mod_name}-forge-${minecraft_version}" @@ -161,8 +164,10 @@ publisher { displayName = "[FORGE 1.20.2] CraterLib - ${project.version}" gameVersions = ["1.20.2"] loaders = ["forge"] - artifact = jar + artifact = shadowJar } -publishMod.dependsOn(build) +publishCurseforge.dependsOn(reobfShadowJar) +publishModrinth.dependsOn(reobfShadowJar) + jar.finalizedBy('reobfJar') \ No newline at end of file diff --git a/build.gradle b/build.gradle index e00f6c9..b3f31ab 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,6 @@ plugins { id 'net.minecraftforge.gradle' version '[6.0,6.2)' apply false id 'org.spongepowered.mixin' version '0.7-SNAPSHOT' apply false id 'com.github.johnrengelman.shadow' version '7.0.0' apply false - id "me.hypherionmc.modutils.modpublisher" version "1.0.+" apply false } /*registrationUtils {