Another attempt at changelogs on CurseForge
This commit is contained in:
parent
148c8885a2
commit
69d5cb2a72
1 changed files with 7 additions and 6 deletions
13
build.gradle
13
build.gradle
|
@ -121,7 +121,9 @@ task createChangelog(type: ChangelogTask) {
|
||||||
setOutput(new DelayedFile(project, 'build/libs/' + project.getName() + '-' + project.version + '-changelog.txt'));
|
setOutput(new DelayedFile(project, 'build/libs/' + project.getName() + '-' + project.version + '-changelog.txt'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*task createCurseChangelog {
|
def curseChangelog
|
||||||
|
|
||||||
|
task createCurseChangelog {
|
||||||
def env = System.getenv()
|
def env = System.getenv()
|
||||||
def jenkinsUrl = env.JENKINS_URL
|
def jenkinsUrl = env.JENKINS_URL
|
||||||
def jenkinsJob = env.JOB_NAME
|
def jenkinsJob = env.JOB_NAME
|
||||||
|
@ -133,14 +135,13 @@ task createChangelog(type: ChangelogTask) {
|
||||||
url.setRequestProperty("Authorization", "Basic " + auth)
|
url.setRequestProperty("Authorization", "Basic " + auth)
|
||||||
String data = url.getInputStream().text
|
String data = url.getInputStream().text
|
||||||
|
|
||||||
def changelog = ""
|
|
||||||
def xml = new XmlSlurper().parseText(data)
|
def xml = new XmlSlurper().parseText(data)
|
||||||
|
|
||||||
xml.changeSet.item.each { change ->
|
xml.changeSet.item.each { change ->
|
||||||
changelog += "$change.author.fullName: $change.msg" + '\n'
|
curseChangelog += "$change.author.fullName: $change.msg" + '\n'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
|
|
||||||
tasks.build.dependsOn('createChangelog')
|
tasks.build.dependsOn('createChangelog')
|
||||||
|
|
||||||
|
@ -168,11 +169,11 @@ artifacts {
|
||||||
}
|
}
|
||||||
|
|
||||||
curse {
|
curse {
|
||||||
//dependsOn "createCurseChangelog"
|
dependsOn "createCurseChangelog"
|
||||||
|
|
||||||
projectId = project.config.curse_project_id
|
projectId = project.config.curse_project_id
|
||||||
apiKey = "$System.env.curse_api_key"
|
apiKey = "$System.env.curse_api_key"
|
||||||
//changelog = project.changelog
|
changelog = curseChangelog
|
||||||
releaseType = project.config.curse_release_type
|
releaseType = project.config.curse_release_type
|
||||||
|
|
||||||
additionalArtifact deobfJar
|
additionalArtifact deobfJar
|
||||||
|
|
Loading…
Reference in a new issue