Add CurseForge plugin

This commit is contained in:
raoulvdberge
2021-12-12 23:28:43 +01:00
parent 0906b51b99
commit 548c77252f
2 changed files with 47 additions and 21 deletions

View File

@@ -8,6 +8,10 @@ buildscript {
}
}
plugins {
id 'com.matthewprenger.cursegradle' version '1.4.0'
}
repositories {
maven {
url = "https://dvs1.progwml6.com/files/maven/"
@@ -125,6 +129,22 @@ jar {
}
}
if (System.getenv("CURSEFORGE_TOKEN") != null) {
curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN")
project {
id = '243076'
changelog = System.getenv("CHANGELOG")
changelogType = 'markdown'
releaseType = project.version.toString().contains('beta') ? 'beta' : (project.version.toString().contains('alpha') ? 'alpha' : 'release')
mainArtifact(jar) {
displayName = "v$project.version"
}
}
}
}
jar.finalizedBy('reobfJar')
publishing {