CurseGradle + release

This commit is contained in:
embeddedt 2023-01-04 20:47:31 -05:00
parent 588dc1a86e
commit 8317912475
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -12,6 +12,7 @@ buildscript {
plugins {
id 'net.minecraftforge.gradle' version '5.1.+'
id 'org.parchmentmc.librarian.forgegradle' version '1.+'
id 'com.matthewprenger.cursegradle' version '1.4.0'
}
apply plugin: 'org.spongepowered.mixin'
@ -165,3 +166,17 @@ jar.finalizedBy('reobfJar')
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
}
curseforge {
if (System.getenv("CURSEFORGE_TOKEN") != null) {
apiKey = System.getenv("CURSEFORGE_TOKEN")
project {
id = "790626"
changelog = '[Changelog is not currently available]'
changelogType = "markdown"
releaseType = "release"
addGameVersion "Forge"
addGameVersion minecraft_version
}
}
}