diff --git a/Fabric/build.gradle b/Fabric/build.gradle index 87bec75..4badf5c 100644 --- a/Fabric/build.gradle +++ b/Fabric/build.gradle @@ -101,25 +101,26 @@ publishing { publisher { apiKeys { - modrinth = System.getenv("MODRINTH_TOKEN") - curseforge = System.getenv("CURSE_TOKEN") + modrinth(System.getenv("MODRINTH_TOKEN")) + curseforge(System.getenv("CURSE_TOKEN")) } - curseID = curse_id - modrinthID = modrinth_id - versionType = "release" - changelog = "https://raw.githubusercontent.com/hypherionmc/changelogs/main/craterlib/changelog-fabric.md" - version = "${minecraft_version}-${project.version}" - displayName = "[FABRIC/QUILT 1.20.4] CraterLib - ${project.version}" - gameVersions = ["1.20.4"] - loaders = ["fabric", "quilt"] - artifact = remapJar + setCurseID(curse_id) + setModrinthID(modrinth_id) + setVersionType("release") + setChangelog("https://raw.githubusercontent.com/hypherionmc/changelogs/main/craterlib/changelog-fabric.md") + setProjectVersion("${minecraft_version}-${project.version}") + setDisplayName("[FABRIC/QUILT 1.20.6] CraterLib - ${project.version}") + setGameVersions("1.20.6") + setLoaders("fabric", "quilt") + setArtifact(remapJar) + setCurseEnvironment("both") modrinthDepends { - required = ["P7dR8mSH"] + required("fabric-api") } curseDepends { - required = ["fabric-api"] + required("fabric-api") } } \ No newline at end of file diff --git a/Forge/build.gradle b/Forge/build.gradle index e5d275d..c839fb5 100644 --- a/Forge/build.gradle +++ b/Forge/build.gradle @@ -95,17 +95,18 @@ publishing { publisher { apiKeys { - modrinth = System.getenv("MODRINTH_TOKEN") - curseforge = System.getenv("CURSE_TOKEN") + modrinth(System.getenv("MODRINTH_TOKEN")) + curseforge(System.getenv("CURSE_TOKEN")) } - curseID = curse_id - modrinthID = modrinth_id - versionType = "release" - changelog = "https://raw.githubusercontent.com/hypherionmc/changelogs/main/craterlib/changelog-forge.md" - version = "${minecraft_version}-${project.version}" - displayName = "[FORGE 1.20.4] CraterLib - ${project.version}" - gameVersions = ["1.20.4"] - loaders = ["forge"] - artifact = remapJar + setCurseID(curse_id) + setModrinthID(modrinth_id) + setVersionType("release") + setChangelog("https://raw.githubusercontent.com/hypherionmc/changelogs/main/craterlib/changelog-forge.md") + setProjectVersion("${minecraft_version}-${project.version}") + setDisplayName("[Forge 1.20.6] CraterLib - ${project.version}") + setGameVersions("1.20.6") + setLoaders("forge") + setArtifact(remapJar) + setCurseEnvironment("both") } \ No newline at end of file diff --git a/NeoForge/build.gradle b/NeoForge/build.gradle index c71d840..877fe37 100644 --- a/NeoForge/build.gradle +++ b/NeoForge/build.gradle @@ -94,20 +94,18 @@ publishing { publisher { apiKeys { - modrinth = System.getenv("MODRINTH_TOKEN") - curseforge = System.getenv("CURSE_TOKEN") + modrinth(System.getenv("MODRINTH_TOKEN")) + curseforge(System.getenv("CURSE_TOKEN")) } - curseID = curse_id - modrinthID = modrinth_id - versionType = "release" - changelog = rootProject.file("changelog-forge.md") - version = "${minecraft_version}-${project.version}" - displayName = "[NEOFORGE 1.20.4] CraterLib - ${project.version}" - gameVersions = ["1.20.4"] - loaders = ["neoforge"] - artifact = remapJar -} - -publishCurseforge.dependsOn(remapJar) -publishModrinth.dependsOn(remapJar) \ No newline at end of file + setCurseID(curse_id) + setModrinthID(modrinth_id) + setVersionType("release") + setChangelog("https://raw.githubusercontent.com/hypherionmc/changelogs/main/craterlib/changelog-forge.md") + setProjectVersion("${minecraft_version}-${project.version}") + setDisplayName("[NeoForge 1.20.6] CraterLib - ${project.version}") + setGameVersions("1.20.6") + setLoaders("neoforge") + setArtifact(remapJar) + setCurseEnvironment("both") +} \ No newline at end of file diff --git a/build.gradle b/build.gradle index 01cd33a..5718fe6 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'java' id 'com.github.johnrengelman.shadow' version '8.1.1' apply false id "xyz.wagyourtail.unimined" version "1.2.4" apply false - id "me.hypherionmc.modutils.modpublisher" version "1.0.23+" + id "com.hypherionmc.modutils.modpublisher" version "2.1.+" id "com.hypherionmc.modutils.orion" version "1.0.10" id 'maven-publish' } @@ -26,10 +26,10 @@ subprojects { apply plugin: "java" apply plugin: 'maven-publish' apply plugin: 'com.github.johnrengelman.shadow' - apply plugin: 'me.hypherionmc.modutils.modpublisher' + apply plugin: 'com.hypherionmc.modutils.modpublisher' - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_21 group = rootProject.group