update build.gradle
This commit is contained in:
parent
1a8c4700aa
commit
a53bb6dce7
14
build.gradle
14
build.gradle
@ -54,8 +54,10 @@ minecraft {
|
|||||||
mainClass = 'cpw.mods.fml.relauncher.ServerLaunchWrapper'
|
mainClass = 'cpw.mods.fml.relauncher.ServerLaunchWrapper'
|
||||||
tweakClass = 'cpw.mods.fml.common.launcher.FMLTweaker'
|
tweakClass = 'cpw.mods.fml.common.launcher.FMLTweaker'
|
||||||
installerVersion = "1.4"
|
installerVersion = "1.4"
|
||||||
|
|
||||||
srgExtra "PK: org/bukkit/craftbukkit org/bukkit/craftbukkit/v1_7_R4"
|
srgExtra "PK: org/bukkit/craftbukkit org/bukkit/craftbukkit/v1_7_R4"
|
||||||
|
tasks.withType(JavaCompile) {
|
||||||
|
options.encoding = "UTF-8"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
group = 'pw.yumc'
|
group = 'pw.yumc'
|
||||||
ext.buildInfoCached = null;
|
ext.buildInfoCached = null;
|
||||||
@ -96,13 +98,12 @@ def gitInfo(String key) {
|
|||||||
}
|
}
|
||||||
return key ? gitInfoCached[key] : gitInfoCached;
|
return key ? gitInfoCached[key] : gitInfoCached;
|
||||||
}
|
}
|
||||||
ext.sys= System.properties
|
|
||||||
ext.mcVersion = "1.7.10"
|
ext.mcVersion = "1.7.10"
|
||||||
ext.forgeVersion = VersionParser.parseForgeRevision(file('src/main/resources/fmlversion.properties'))
|
ext.forgeVersion = VersionParser.parseForgeRevision(file('src/main/resources/fmlversion.properties'))
|
||||||
ext.build = sys.hasProperty('BUILD_NUMBER') ? sys.getProperty('BUILD_NUMBER') : "Unkonwn"
|
ext.build = System.getenv('BUILD_NUMBER') ? System.getenv('BUILD_NUMBER') : "Unkonwn"
|
||||||
ext.kcx_version = 1
|
ext.kcx_version = 1
|
||||||
version = "${mcVersion}-${forgeVersion}-${kcx_version}.${build}"
|
version = "${mcVersion}-${forgeVersion}-${kcx_version}.${build}"
|
||||||
if (project.hasProperty('officialBuild')) println "Updated KCauldron version: ${version}"
|
if (System.getenv('officialBuild')!=null) println "Updated KCauldron version: ${version}"
|
||||||
|
|
||||||
launch4j {
|
launch4j {
|
||||||
jreMinVersion = '1.7.0'
|
jreMinVersion = '1.7.0'
|
||||||
@ -176,7 +177,7 @@ def generateManifest(boolean legacy = false) {
|
|||||||
'KCauldronX-Channel' : project.name,
|
'KCauldronX-Channel' : project.name,
|
||||||
'KCauldronX-Version' : project.version,
|
'KCauldronX-Version' : project.version,
|
||||||
'KCauldronX-Legacy' : legacy,
|
'KCauldronX-Legacy' : legacy,
|
||||||
'KCauldronX-Official' : sys.hasProperty('officialBuild'),
|
'KCauldronX-Official' : System.getenv('officialBuild')!=null,
|
||||||
'Implementation-Vendor' : 'Prototik',
|
'Implementation-Vendor' : 'Prototik',
|
||||||
'Implementation-Title' : project.name,
|
'Implementation-Title' : project.name,
|
||||||
'Implementation-Version': '1.7.10-R0.1-SNAPSHOT',
|
'Implementation-Version': '1.7.10-R0.1-SNAPSHOT',
|
||||||
@ -336,6 +337,3 @@ task resolveAllDependencies {
|
|||||||
configurations.each { it.resolve() }
|
configurations.each { it.resolve() }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tasks.withType(JavaCompile) {
|
|
||||||
options.encoding = "UTF-8"
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user