mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-10-26 14:24:40 +00:00
Merge branch 'master' of https://github.com/CrazyPants/EnderIO
This commit is contained in:
commit
efb15c542a
2 files changed
+41
-2
No files matched your search
+38
-1
@@ -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
@@ -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
|
||||
Reference in new issue
Block a user