Skip to content

Commit

Permalink
Add CF publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryhon0 committed Jun 28, 2024
1 parent b64f107 commit 3e3261d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
id 'maven-publish'

id "com.modrinth.minotaur" version "2.+"
id 'net.darkhax.curseforgegradle' version '1.1.15'
}

version = project.mod_version
Expand All @@ -26,6 +27,18 @@ modrinth {
}
}

task publishCurseForge(type: net.darkhax.curseforgegradle.TaskPublishCurseForge) {
apiToken = System.getenv("CF_TOKEN")
def mainFile = upload(1023475, jar)
mainFile.changelog = "https://github.com/Ryhon0/ReplanterPlus/commits/master/"
mainFile.releaseType = "release"
mainFile.addGameVersion(project.minecraft_version)
mainFile.addModLoader("Fabric")
mainFile.addModLoader("Quilt")
// mainFile.addEnvironment('Client') // This doesn't work, I guess
mainFile.addJavaVersion("Java 21")
}

repositories {
maven { url = "https://maven.terraformersmc.com/" }
}
Expand Down

0 comments on commit 3e3261d

Please sign in to comment.