[CHORE] Fix Auto Publishing Config

This commit is contained in:
2023-10-01 01:37:31 +02:00
parent ab7784092f
commit e0897648ef
3 changed files with 11 additions and 6 deletions

View File

@@ -1,9 +1,9 @@
plugins { plugins {
id 'fabric-loom' version '1.3-SNAPSHOT' id 'fabric-loom' version '1.3-SNAPSHOT'
id 'idea' id 'idea'
id "me.hypherionmc.modutils.modpublisher" version "1.0.+"
} }
apply plugin: 'me.hypherionmc.modutils.modpublisher'
apply plugin: 'com.github.johnrengelman.shadow' apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'maven-publish' apply plugin: 'maven-publish'
@@ -153,5 +153,6 @@ publisher {
} }
} }
publishMod.dependsOn(build) publishCurseforge.dependsOn(remapJar)
publishModrinth.dependsOn(remapJar)

View File

@@ -1,9 +1,12 @@
plugins {
id "me.hypherionmc.modutils.modpublisher" version "1.0.+"
}
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'net.minecraftforge.gradle' apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse' apply plugin: 'eclipse'
apply plugin: 'org.spongepowered.mixin' apply plugin: 'org.spongepowered.mixin'
apply plugin: 'maven-publish' apply plugin: 'maven-publish'
apply plugin: 'me.hypherionmc.modutils.modpublisher'
apply plugin: 'com.github.johnrengelman.shadow' apply plugin: 'com.github.johnrengelman.shadow'
archivesBaseName = "${mod_name}-forge-${minecraft_version}" archivesBaseName = "${mod_name}-forge-${minecraft_version}"
@@ -161,8 +164,10 @@ publisher {
displayName = "[FORGE 1.20.2] CraterLib - ${project.version}" displayName = "[FORGE 1.20.2] CraterLib - ${project.version}"
gameVersions = ["1.20.2"] gameVersions = ["1.20.2"]
loaders = ["forge"] loaders = ["forge"]
artifact = jar artifact = shadowJar
} }
publishMod.dependsOn(build) publishCurseforge.dependsOn(reobfShadowJar)
publishModrinth.dependsOn(reobfShadowJar)
jar.finalizedBy('reobfJar') jar.finalizedBy('reobfJar')

View File

@@ -5,7 +5,6 @@ plugins {
id 'net.minecraftforge.gradle' version '[6.0,6.2)' apply false id 'net.minecraftforge.gradle' version '[6.0,6.2)' apply false
id 'org.spongepowered.mixin' version '0.7-SNAPSHOT' apply false id 'org.spongepowered.mixin' version '0.7-SNAPSHOT' apply false
id 'com.github.johnrengelman.shadow' version '7.0.0' apply false id 'com.github.johnrengelman.shadow' version '7.0.0' apply false
id "me.hypherionmc.modutils.modpublisher" version "1.0.+" apply false
} }
/*registrationUtils { /*registrationUtils {