Remove curseforge upload and signing. NOt needed.
@@ -83,72 +83,3 @@ artifacts {
archives jar
archives sourceJar
}
-
-task signJar(type: SignJar, dependsOn: reobfJar) {
- onlyIf { // Skip the task if our secret data isn't available
- project.hasProperty('keyStore')
- }
-
- if (project.hasProperty('keyStore')) {
- keyStore = project.keyStore // This needs to be a path to the keystore file
- alias = project.keyStoreAlias
- storePass = project.keyStorePass
- keyPass = project.keyStoreKeyPass
- inputFile = jar.archivePath
- outputFile = jar.archivePath
- }
-}
-
-build.dependsOn signJar
-
-curseforge {
- if (System.getenv().CURSEAPIKEY != null && System.getenv().CURSERELEASETYPE != null)
- {
- apiKey = System.getenv().CURSEAPIKEY
-
- project {
- id = '252818'
-
- changelog = file('build/changelog.md')
- changelogType = 'markdown'
- releaseType = System.getenv().CURSERELEASETYPE
-
- addArtifact sourceJar
- }
- }
- else
- {
- logger.lifecycle("Cannot run the CurseUpload sequence. No API-Key or release type has been provided.")
- }
-}
-
-task("createChangelog") {
- group = 'upload'
-
- doLast {
- def teamCityURL = "https://teamcity.minecolonies.com/"
- def file = new FileOutputStream("build/changelog.md")
- def out = new BufferedOutputStream(file)
- def changesXML = new XmlSlurper().parse(teamCityURL + "guestAuth/app/rest/changes?locator=build:(id:" + teamcity["teamcity.build.id"] + ")")
-
- def changes = changesXML.change
- println("createChangelog: Identified " + changes.size() + " changes to be written into the changelog.")
-
- out << "# Dynamic Trees Changelog \n"
- out << "## Version: _" + version + "_ \n"
-
- if (changes.size() > 0) {
- for (int i = 0; i < changes.size(); i++) {
- def changeDetailsURL = teamCityURL + "guestAuth/app/rest/changes/id:" + changes[i].@id.text()
- def changeDetailsXml = new XmlSlurper().parse(changeDetailsURL)
- def changeComment = changeDetailsXml.comment.text().trim()
-
- out << "* " + changeComment + "\n"
- }
- } else {
- out << "No Changes detected!"
- }
-
- out.close()
- }
-}
