diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index edd656d346..b23527df20 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,6 @@ jobs: MAVEN_USERNAME: ${{secrets.MAVEN_USERNAME}} MAVEN_PASSWORD: ${{secrets.MAVEN_PASSWORD}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - CURSEFORGE_TOKEN: ${{secrets.CURSEFORGE_TOKEN}} MODRINTH_TOKEN: ${{secrets.MODRINTH_TOKEN}} steps: - name: Checking Out the Repository @@ -45,5 +44,5 @@ jobs: key: ${{ runner.os }}-gradle-#{{ hashFiles('**/gradle-wrapper.properties') }} restore-keys: | ${{ runner.os }}-gradle- - - name: Publish to CurseForge and Modrinth + - name: Publish to Modrinth run: ./gradlew publishMod -PreleaseType=stable -PuseThirdPartyMods=false diff --git a/README.md b/README.md index 8a89617d35..dd19139e91 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,4 @@ Wilder Wild overhauls the Wild Update, adding features and improving existing ones. -CurseForge: https://www.curseforge.com/minecraft/mc-mods/wilder-wild - Modrinth: https://modrinth.com/mod/wilder-wild diff --git a/build.gradle.kts b/build.gradle.kts index 4d3ae1eec3..dac69224ca 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,3 @@ -import com.matthewprenger.cursegradle.CurseArtifact -import com.matthewprenger.cursegradle.CurseProject -import com.matthewprenger.cursegradle.CurseRelation import groovy.xml.XmlSlurper import org.codehaus.groovy.runtime.ResourceGroovyMethods import java.io.FileInputStream @@ -29,7 +26,6 @@ plugins { id("org.quiltmc.gradle.licenser") version("+") id("org.ajoberstar.grgit") version("+") id("com.modrinth.minotaur") version("+") - id("com.matthewprenger.cursegradle") version("+") `maven-publish` eclipse idea @@ -160,11 +156,6 @@ repositories { } maven("https://maven.shedaniel.me/") - maven("https://cursemaven.com") { - content { - includeGroup("curse.maven") - } - } maven("https://maven.minecraftforge.net/") maven("https://maven.parchmentmc.org") maven("https://maven.quiltmc.org/repository/release") { @@ -425,9 +416,7 @@ extra { } val modrinth_id: String by extra -val curseforge_id: String by extra val release_type: String by extra -val curseforge_minecraft_version: String by extra val changelog_file: String by extra val modrinth_version = makeModrinthVersion(mod_version) @@ -465,40 +454,6 @@ fun getBranch(): String { return branch.substring(branch.lastIndexOf("/") + 1) } -curseforge { - val token = System.getenv("CURSEFORGE_TOKEN") - apiKey = if (token == null || token.isEmpty()) "unset" else token - val gameVersion = if (curseforge_minecraft_version != "null") curseforge_minecraft_version else minecraft_version - project(closureOf { - id = curseforge_id - changelog = changelog_text - releaseType = release_type - addGameVersion("Fabric") - addGameVersion("Quilt") - addGameVersion(gameVersion) - relations(closureOf { - requiredDependency("fabric-api") - optionalDependency("cloth-config") - optionalDependency("modmenu") - optionalDependency("terrablender-fabric") - optionalDependency("simple-copper-pipes") - embeddedLibrary("frozenlib") - }) - mainArtifact(remapJar, closureOf { - displayName = display_name - }) - //addArtifact(tasks.remapSourcesJar.get()) - //addArtifact(javadocJar) - - afterEvaluate { - uploadTask.dependsOn(remapJar) - //uploadTask.dependsOn(tasks.remapSourcesJar.get()) - //uploadTask.dependsOn(javadocJar) - } - }) - curseGradleOptions.forgeGradleIntegration = false -} - modrinth { token.set(System.getenv("MODRINTH_TOKEN")) projectId.set(modrinth_id) @@ -554,6 +509,5 @@ val github by tasks.register("github") { val publishMod by tasks.register("publishMod") { dependsOn(tasks.publish) dependsOn(github) - dependsOn(tasks.curseforge) dependsOn(tasks.modrinth) } diff --git a/gradle/publishing.properties b/gradle/publishing.properties index 6fd8370f0d..65ca5559a3 100644 --- a/gradle/publishing.properties +++ b/gradle/publishing.properties @@ -1,6 +1,4 @@ modrinth_id=AtHRJSUW -curseforge_id=648511 release_type=release -curseforge_minecraft_version=null changelog_file=CHANGELOG.md