Skip to content

Commit 51169a2

Browse files
committed
Swap to Darkhax's CurseForgeGradle plugin
1 parent 89d4dd1 commit 51169a2

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

build.gradle

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ publishing {
6565
}
6666
}
6767

68+
69+
import net.darkhax.curseforgegradle.TaskPublishCurseForge
70+
6871
import java.nio.charset.StandardCharsets
6972

7073
final ref = System.getenv("GITHUB_REF")
@@ -80,15 +83,18 @@ final type = System.getenv("RELEASE_OVERRIDE") ?:
8083

8184
final minecraftCompatible = libs.versions.minecraft.compatible.get().split(",").toList()
8285

83-
curseforge {
84-
project {
85-
apiKey = System.getenv("CURSEFORGE_TOKEN")
86-
id = curseforgeId
87-
changelog = _changelog
88-
releaseType = type
89-
gameVersionStrings.addAll(minecraftCompatible)
90-
mainArtifact(remapJar)
91-
}
86+
task curseforge(type: TaskPublishCurseForge) {
87+
apiToken = System.getenv("CURSEFORGE_TOKEN")
88+
89+
final def mainFile = upload(curseforgeId, tasks.remapJar)
90+
91+
mainFile.changelog = _changelog
92+
mainFile.changelogType = "markdown"
93+
mainFile.releaseType = type
94+
mainFile.addJavaVersion("Java " + java.targetCompatibility.majorVersion)
95+
mainFile.addGameVersion(*minecraftCompatible)
96+
mainFile.addEnvironment("Server")
97+
mainFile.addModLoader("Fabric", "Quilt")
9298
}
9399

94100
modrinth {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
org.gradle.jvmargs=-Xmx1G
33

44
# Mod Properties
5-
projectVersion=4.3.2
5+
projectVersion=4.3.3-rc.1
66
maven_group=gay.ampflower.mod
77

88
curseforgeId=914551

libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ annotations = "24.1.0"
1313
# Plugins
1414
loom = "1.9.+"
1515
minotaur = "2.+"
16-
cursegradle = "1.6.1"
16+
cursegradle = "1.1.26"
1717

1818
[libraries]
1919
# Minecraft
@@ -31,4 +31,4 @@ mod_runtime = []
3131
[plugins]
3232
loom = { id = "fabric-loom", version.ref = "loom" }
3333
minotaur = { id = "com.modrinth.minotaur", version.ref = "minotaur" }
34-
cursegradle = { id = "io.github.CDAGaming.cursegradle", version.ref = "cursegradle" }
34+
cursegradle = { id = "net.darkhax.curseforgegradle", version.ref = "cursegradle" }

0 commit comments

Comments
 (0)