This commit is contained in:
CrazyPants committed 2014-12-13 12:57:03 +08:00
commit efb15c542a
2 files changed
+41 -2

No files matched your search

+38 -1
View File
@@ -9,6 +9,7 @@ buildscript {
apply plugin: 'forge'
apply plugin: 'maven-publish'
apply plugin: 'curseforge'
ext.buildnumber = 0
if (System.getenv('BUILD_NUMBER') != null)
@@ -120,4 +121,40 @@ publishing {
maven { url mavendir }
}
}
}
}
String getChangelog() {
def changelogFile = new File('ReleaseNotes.txt')
String str = ''
String separator = '---'
int lineCount = 0
boolean done = false
changelogFile.eachLine {
if (done || it == null) {
return
}
if (lineCount < 3) {
lineCount++
if (it.startsWith(separator)) {return}
}
if (!it.startsWith(separator)) {
str += "$it\n"
return
}
done = true // once we go past the first version block, parse no more
}
return str
}
curse {
dependsOn 'reobf'
onlyIf {
return project.hasProperty('cp_curseforge_key') && System.getenv("CURSE") != null && System.getenv("CURSE").equalsIgnoreCase("true")
}
if (project.hasProperty('cp_curseforge_key')) apiKey = project.curseforge_key
projectId = project.curse_projectId
changelog = getChangelog()
releaseType = 'beta'
}
+3 -1
View File
@@ -9,4 +9,6 @@ mod_version=2.2.2
buildcraft_version=6.1.5
waila_version=1.5.5_1.7.10
ae2_version=rv1-stable-1
ttCore_version=MC1.7.10-0.0.3-33
ttCore_version=MC1.7.10-0.0.3-33
curse_projectId=64578