diff --git a/Fabric/build.gradle b/Fabric/build.gradle index b316ccf..83cdd51 100644 --- a/Fabric/build.gradle +++ b/Fabric/build.gradle @@ -3,6 +3,7 @@ plugins { id 'maven-publish' id 'idea' id 'com.github.johnrengelman.shadow' version '7.0.0' + id "me.hypherionmc.modutils.modpublisher" version "1.0.13" } archivesBaseName = "${mod_name}-fabric-${minecraft_version}" @@ -134,3 +135,30 @@ task copyAllArtifacts(type: Copy) { } build.finalizedBy(copyAllArtifacts) + +publisher { + apiKeys { + modrinth = System.getenv("MODRINTH_TOKEN") + curseforge = System.getenv("CURSE_TOKEN") + } + + curseID = curse_id + modrinthID = modrinth_id + versionType = "release" + changelog = rootProject.file("changelog.md") + version = "${minecraft_version}-${project.version}" + displayName = "[FABRIC/QUILT 1.20] CraterLib - ${project.version}" + gameVersions = ["1.20"] + loaders = ["fabric", "quilt"] + artifact = remapJar + + modrinthDepends { + required = ["P7dR8mSH"] + } + + curseDepends { + required = ["fabric-api"] + } +} + +publishMod.dependsOn(build) \ No newline at end of file diff --git a/Fabric/src/main/resources/fabric.mod.json b/Fabric/src/main/resources/fabric.mod.json index 682cb21..a757083 100644 --- a/Fabric/src/main/resources/fabric.mod.json +++ b/Fabric/src/main/resources/fabric.mod.json @@ -32,9 +32,9 @@ ], "accessWidener": "craterlib.aw", "depends": { - "fabricloader": ">=0.14.19", - "fabric": "*", - "minecraft": "*", + "fabricloader": ">=0.14.21", + "fabric-api": "*", + "minecraft": ">=1.20", "java": ">=17" } } diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..3ce015c --- /dev/null +++ b/changelog.md @@ -0,0 +1 @@ +# Dummy file. To be filled by Jenkins \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 05db7ec..5255f4a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ version_patch=8d group=me.hypherionmc.craterlib # Common -minecraft_version=1.20-pre6 +minecraft_version=1.20 common_runs_enabled=false common_client_run_name=Common Client common_server_run_name=Common Server @@ -15,8 +15,8 @@ forge_version=45.0.9 forge_ats_enabled=true # Fabric -fabric_version=0.82.1+1.20 -fabric_loader_version=0.14.9 +fabric_version=0.83.0+1.20 +fabric_loader_version=0.14.21 # Mod options mod_name=CraterLib @@ -30,3 +30,7 @@ org.gradle.daemon=false # Dependencies mod_menu_version=7.0.0-beta.2 moon_config=1.0.9 + +# Publishing +curse_id=867099 +modrinth_id=Nn8Wasaq \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index ad35826..1ff0f94 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,6 +1,9 @@ pluginManagement { repositories { gradlePluginPortal() + maven { + url "https://maven.firstdarkdev.xyz/releases" + } maven { name = 'Fabric' url = 'https://maven.fabricmc.net/'