2013-11-10 03:48:53 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2017-08-04 00:30:43 +00:00
|
|
|
mavenLocal()
|
2013-11-10 03:48:53 +00:00
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
name = "forge"
|
|
|
|
url = "http://files.minecraftforge.net/maven"
|
|
|
|
}
|
2013-12-10 02:47:55 +00:00
|
|
|
maven {
|
|
|
|
name = "sonatype"
|
|
|
|
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
|
|
|
}
|
2013-11-10 03:48:53 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2017-06-05 21:04:10 +00:00
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
|
2013-11-10 03:48:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-08 17:52:32 +00:00
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
name = "local"
|
|
|
|
url = "file:///home/cpw/projects/repo"
|
|
|
|
}
|
|
|
|
}
|
2016-06-30 07:17:17 +00:00
|
|
|
|
2015-06-28 22:19:52 +00:00
|
|
|
apply plugin: "maven"
|
|
|
|
apply plugin: "net.minecraftforge.gradle.patcher"
|
|
|
|
apply plugin: "net.minecraftforge.gradle.launch4j"
|
2013-11-20 00:47:50 +00:00
|
|
|
|
2017-09-18 21:35:45 +00:00
|
|
|
minecraft.version = "1.12.2"
|
2016-06-30 07:17:17 +00:00
|
|
|
|
2015-06-28 22:19:52 +00:00
|
|
|
minecraft {
|
2017-10-04 05:08:36 +00:00
|
|
|
mappings = 'snapshot_nodoc_20171003'
|
2015-06-28 22:19:52 +00:00
|
|
|
workspaceDir = "projects"
|
2016-06-30 07:17:17 +00:00
|
|
|
versionJson = "jsons/${minecraft.version}-dev.json"
|
2015-06-28 22:19:52 +00:00
|
|
|
buildUserdev = true
|
|
|
|
buildInstaller = true
|
2016-11-16 03:26:10 +00:00
|
|
|
installerVersion = "1.5"
|
2013-11-10 03:48:53 +00:00
|
|
|
|
2015-06-28 22:19:52 +00:00
|
|
|
def common = {
|
|
|
|
patchPrefixOriginal "../src-base/minecraft"
|
|
|
|
patchPrefixChanged "../src-work/minecraft"
|
|
|
|
mainClassClient "net.minecraft.launchwrapper.Launch"
|
|
|
|
tweakClassClient "net.minecraftforge.fml.common.launcher.FMLTweaker"
|
|
|
|
mainClassServer "net.minecraft.launchwrapper.Launch"
|
|
|
|
tweakClassServer "net.minecraftforge.fml.common.launcher.FMLServerTweaker"
|
2015-02-09 01:24:44 +00:00
|
|
|
}
|
2015-06-28 22:19:52 +00:00
|
|
|
|
|
|
|
projects {
|
|
|
|
forge {
|
|
|
|
rootDir "."
|
2016-03-12 00:59:24 +00:00
|
|
|
patchDir "patches/minecraft"
|
2015-08-02 02:59:30 +00:00
|
|
|
patchAfter "clean"
|
|
|
|
genPatchesFrom "clean"
|
2016-03-12 00:59:24 +00:00
|
|
|
genMcpPatches = false
|
|
|
|
applyMcpPatches = false
|
2016-05-18 10:29:10 +00:00
|
|
|
s2sKeepImports = true
|
2015-06-28 22:19:52 +00:00
|
|
|
with common
|
|
|
|
}
|
2013-11-10 03:48:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-28 22:19:52 +00:00
|
|
|
group = 'net.minecraftforge'
|
|
|
|
version = getVersionFromJava(file("src/main/java/net/minecraftforge/common/ForgeVersion.java"))
|
|
|
|
|
2015-08-02 02:59:30 +00:00
|
|
|
extractForgeSources { exclude "**/SideOnly.java", "**/Side.java" }
|
2016-01-19 10:14:40 +00:00
|
|
|
extractForgeResources { exclude "**/log4j2.xml" }
|
2015-06-28 22:19:52 +00:00
|
|
|
|
2017-10-03 05:13:30 +00:00
|
|
|
genGradleProjects {
|
|
|
|
addTestCompileDep "junit:junit:4.12" // TODO update unit tests to junit 5 and remove this
|
|
|
|
addTestCompileDep "org.junit.jupiter:junit-jupiter-api:5.0.0"
|
|
|
|
addTestCompileDep "org.opentest4j:opentest4j:1.0.0" // needed for junit 5
|
2017-08-09 20:43:56 +00:00
|
|
|
addTestCompileDep "org.hamcrest:hamcrest-core:1.3"
|
2017-08-09 19:59:57 +00:00
|
|
|
filter { dep -> !dep.contains("scala") }
|
|
|
|
}
|
2015-06-28 22:19:52 +00:00
|
|
|
|
|
|
|
processJson {
|
2016-06-30 07:17:17 +00:00
|
|
|
releaseJson = "jsons/${minecraft.version}-rel.json"
|
2015-06-28 22:19:52 +00:00
|
|
|
addReplacements([
|
|
|
|
"@minecraft_version@": project.minecraft.version,
|
|
|
|
"@version@": project.version,
|
|
|
|
"@project@": "forge",
|
|
|
|
"@artifact@": "net.minecraftforge:forge:${project.version}",
|
|
|
|
"@universal_jar@": { outputJar.archiveName },
|
|
|
|
"@timestamp@": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
|
|
|
|
])
|
2013-11-10 03:48:53 +00:00
|
|
|
}
|
|
|
|
|
2015-06-28 22:19:52 +00:00
|
|
|
task changelog(type: JenkinsChangelog) {
|
2013-11-10 03:48:53 +00:00
|
|
|
|
2015-06-28 22:19:52 +00:00
|
|
|
// skip if there is no forge jenkins pass
|
2015-06-29 18:29:14 +00:00
|
|
|
onlyIf {
|
|
|
|
project.hasProperty('forgeJenkinsPass')
|
|
|
|
}
|
2015-06-28 22:19:52 +00:00
|
|
|
|
|
|
|
outputs.upToDateWhen { false } // never up to date
|
|
|
|
serverRoot = "http://ci.jenkins.minecraftforge.net/"
|
|
|
|
jobName = "minecraftforge"
|
2016-05-21 13:18:51 +00:00
|
|
|
targetBuild = System.env['BUILD_NUMBER'] ?: project.ext.properties.buildNumber ?:0;
|
2015-06-28 22:19:52 +00:00
|
|
|
authName = "console_script"
|
|
|
|
authPassword = project.hasProperty('forgeJenkinsPass') ? project.getProperty('forgeJenkinsPass') : "";
|
|
|
|
output = "build/distributions/${project.name}-${project.version}-changelog.txt"
|
|
|
|
}
|
|
|
|
|
|
|
|
task crowdin(type: CrowdinDownload) {
|
|
|
|
output = "build/crowdin.zip"
|
|
|
|
projectId = 'minecraft-forge'
|
|
|
|
extract = false // we wanna keep it as a zip. not extract it to a folder named "crowdin.zip"
|
|
|
|
|
|
|
|
// task auomatically skips if this is null
|
|
|
|
if (project.hasProperty('crowdinKey'))
|
|
|
|
apiKey = project.crowdinKey
|
2013-11-10 03:48:53 +00:00
|
|
|
}
|
|
|
|
|
2015-06-28 22:19:52 +00:00
|
|
|
def extraTxts = [
|
2015-08-02 04:03:47 +00:00
|
|
|
"CREDITS-fml.txt",
|
2016-06-23 04:02:42 +00:00
|
|
|
"LICENSE-new.txt",
|
2015-06-28 22:19:52 +00:00
|
|
|
"MinecraftForge-Credits.txt",
|
|
|
|
"Paulscode SoundSystem CodecIBXM License.txt",
|
|
|
|
"Paulscode IBXM Library License.txt"
|
|
|
|
]
|
2016-11-16 07:38:23 +00:00
|
|
|
if (project.hasProperty('forgeJenkinsPass'))
|
|
|
|
extraTxts += changelog
|
2014-10-15 06:07:15 +00:00
|
|
|
|
2015-06-28 22:19:52 +00:00
|
|
|
outputJar {
|
|
|
|
classifier = 'universal'
|
|
|
|
from extraTxts
|
|
|
|
|
|
|
|
// add crowdin locales
|
2015-08-21 16:52:33 +00:00
|
|
|
from { crowdin.getDidWork() ? zipTree(crowdin.output) : null}
|
2015-06-28 22:19:52 +00:00
|
|
|
dependsOn 'crowdin'
|
|
|
|
|
|
|
|
manifest.attributes([
|
|
|
|
"Main-Class": "net.minecraftforge.fml.relauncher.ServerLaunchWrapper",
|
|
|
|
"TweakClass": "net.minecraftforge.fml.common.launcher.FMLTweaker",
|
2015-11-24 11:37:17 +00:00
|
|
|
"Class-Path": getServerClasspath(file("jsons/${minecraft.version}-rel.json"))
|
2015-06-28 22:19:52 +00:00
|
|
|
])
|
|
|
|
}
|
|
|
|
|
|
|
|
installer {
|
|
|
|
classifier = 'installer'
|
|
|
|
from extraTxts
|
|
|
|
from "src/main/resources/forge_logo.png"
|
2016-11-16 07:38:23 +00:00
|
|
|
from "src/main/resources/url.png"
|
2015-06-28 22:19:52 +00:00
|
|
|
rename "forge_logo\\.png", "big_logo.png"
|
|
|
|
}
|
|
|
|
|
|
|
|
task signUniversal(type: SignJar, dependsOn: 'outputJar') {
|
|
|
|
onlyIf {
|
|
|
|
project.hasProperty('jarsigner')
|
|
|
|
}
|
|
|
|
|
|
|
|
def jarsigner = [:];
|
|
|
|
|
|
|
|
if (project.hasProperty('jarsigner'))
|
|
|
|
jarsigner = project.jarsigner;
|
|
|
|
|
|
|
|
alias = 'forge'
|
|
|
|
exclude "paulscode/**"
|
|
|
|
storePass = jarsigner.storepass
|
|
|
|
keyPass = jarsigner.keypass
|
|
|
|
keyStore = jarsigner.keystore
|
|
|
|
inputFile = outputJar.archivePath
|
|
|
|
outputFile = outputJar.archivePath
|
|
|
|
}
|
|
|
|
uploadArchives.dependsOn signUniversal
|
|
|
|
build.dependsOn signUniversal
|
2016-02-07 23:44:46 +00:00
|
|
|
installer.dependsOn signUniversal
|
2015-06-28 22:19:52 +00:00
|
|
|
|
2015-08-10 01:30:31 +00:00
|
|
|
// MDK package
|
|
|
|
|
|
|
|
import org.apache.tools.ant.filters.ReplaceTokens
|
|
|
|
task makeMdk(type: Zip) {
|
|
|
|
baseName = project.name
|
|
|
|
classifier = "mdk"
|
|
|
|
version = project.version
|
|
|
|
destinationDir = file('build/distributions')
|
|
|
|
|
2015-08-15 16:56:56 +00:00
|
|
|
from 'gradlew'
|
|
|
|
from 'gradlew.bat'
|
|
|
|
into ('gradle') {
|
2016-03-14 01:32:53 +00:00
|
|
|
from 'gradle'
|
2015-08-15 16:56:56 +00:00
|
|
|
}
|
2015-08-26 17:57:51 +00:00
|
|
|
into ('eclipse') {
|
|
|
|
from 'mdk/eclipse'
|
|
|
|
}
|
2016-11-16 07:38:23 +00:00
|
|
|
if (project.hasProperty('forgeJenkinsPass'))
|
|
|
|
from changelog.output
|
2015-08-15 17:16:00 +00:00
|
|
|
from ('mdk') {
|
2016-03-14 01:32:53 +00:00
|
|
|
filter(ReplaceTokens, tokens: [
|
|
|
|
VERSION: project.version,
|
|
|
|
MAPPINGS: minecraft.mappings.replace('nodoc_', '')
|
|
|
|
])
|
|
|
|
exclude 'eclipse'
|
|
|
|
rename 'gitignore\\.txt', '.gitignore'
|
|
|
|
from 'MinecraftForge-Credits.txt'
|
2016-06-23 04:07:24 +00:00
|
|
|
from 'LICENSE-new.txt'
|
2016-03-14 01:32:53 +00:00
|
|
|
from 'Paulscode IBXM Library License.txt'
|
|
|
|
from 'Paulscode SoundSystem CodecIBXM License.txt'
|
|
|
|
from 'CREDITS-fml.txt'
|
2015-08-15 17:16:00 +00:00
|
|
|
}
|
2015-08-10 01:30:31 +00:00
|
|
|
}
|
2015-08-14 06:07:17 +00:00
|
|
|
tasks.build.dependsOn makeMdk
|
2015-08-10 01:30:31 +00:00
|
|
|
|
2015-06-28 22:19:52 +00:00
|
|
|
// launch4j
|
2014-10-15 06:07:15 +00:00
|
|
|
|
2013-11-19 20:17:46 +00:00
|
|
|
launch4j {
|
2015-06-28 22:19:52 +00:00
|
|
|
jar = installer.archivePath.canonicalPath
|
|
|
|
outfile = file("build/distributions/${project.name}-${project.version}-installer-win.exe").canonicalPath
|
|
|
|
icon = file('icon.ico').canonicalPath
|
|
|
|
manifest = file('l4jManifest.xml').canonicalPath
|
2017-06-05 21:04:10 +00:00
|
|
|
jreMinVersion = '1.8.0'
|
2015-06-28 22:19:52 +00:00
|
|
|
initialHeapPercent = 5;
|
|
|
|
maxHeapPercent = 100;
|
|
|
|
}
|
|
|
|
tasks.generateXmlConfig.dependsOn installer
|
|
|
|
tasks.build.dependsOn 'launch4j'
|
|
|
|
|
|
|
|
// MAVEN
|
|
|
|
|
|
|
|
artifacts {
|
2016-11-16 07:38:23 +00:00
|
|
|
if (project.hasProperty('forgeJenkinsPass'))
|
|
|
|
archives changelog.output
|
2015-06-28 22:19:52 +00:00
|
|
|
archives file("build/distributions/${project.name}-${project.version}-installer-win.exe")
|
2015-08-14 06:07:17 +00:00
|
|
|
archives makeMdk
|
2013-11-19 20:17:46 +00:00
|
|
|
}
|
|
|
|
|
2015-08-20 20:42:58 +00:00
|
|
|
task ciWriteBuildNumber << {
|
|
|
|
def file = file("src/main/java/net/minecraftforge/common/ForgeVersion.java");
|
2016-05-21 13:18:51 +00:00
|
|
|
def bn = System.getenv("BUILD_NUMBER")?:project.ext.properties.buildNumber?:0;
|
2015-08-20 20:42:58 +00:00
|
|
|
def outfile = "";
|
2016-06-30 07:17:17 +00:00
|
|
|
def ln = "\n"; //Linux line endings because we're on git!
|
2015-08-20 20:42:58 +00:00
|
|
|
|
|
|
|
file.eachLine{ String s ->
|
2016-05-21 13:18:51 +00:00
|
|
|
if (s.matches("^ public static final int buildVersion = [\\d]+;\$"))
|
2015-08-23 00:57:12 +00:00
|
|
|
s = " public static final int buildVersion = ${bn};";
|
2016-06-30 07:17:17 +00:00
|
|
|
if (s.matches('^ public static final String mcVersion = "[^\\"]+";'))
|
|
|
|
s = " public static final String mcVersion = \"${minecraft.version}\";";
|
2015-08-23 00:57:12 +00:00
|
|
|
outfile += (s+ln);
|
2015-08-20 20:42:58 +00:00
|
|
|
}
|
|
|
|
file.write(outfile);
|
|
|
|
}
|
|
|
|
|
2013-11-10 03:48:53 +00:00
|
|
|
uploadArchives {
|
2013-11-20 00:47:50 +00:00
|
|
|
repositories.mavenDeployer {
|
|
|
|
|
2015-06-28 22:19:52 +00:00
|
|
|
dependsOn 'build'
|
|
|
|
|
|
|
|
if (project.hasProperty('forgeMavenPass'))
|
|
|
|
{
|
|
|
|
repository(url: "http://files.minecraftforge.net/maven/manage/upload") {
|
2015-08-01 19:08:04 +00:00
|
|
|
authentication(userName: "forge", password: project.getProperty('forgeMavenPass')) // the elvis operator. look it up.
|
2013-11-20 00:47:50 +00:00
|
|
|
}
|
2015-06-28 22:19:52 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
// local repo folder. Might wanna juset use gradle install if you wanans end it to maven-local
|
2013-11-20 00:47:50 +00:00
|
|
|
repository(url: 'file://localhost/' + project.file('repo').getAbsolutePath())
|
|
|
|
}
|
2013-11-10 03:48:53 +00:00
|
|
|
|
2013-11-20 00:47:50 +00:00
|
|
|
pom {
|
|
|
|
groupId = project.group
|
|
|
|
version = project.version
|
|
|
|
artifactId = project.archivesBaseName
|
2015-06-28 22:19:52 +00:00
|
|
|
project {
|
|
|
|
name project.archivesBaseName
|
|
|
|
packaging 'jar'
|
|
|
|
description 'Minecraft Forge API'
|
2013-11-20 00:47:50 +00:00
|
|
|
url 'https://github.com/MinecraftForge/MinecraftForge'
|
2013-11-10 03:48:53 +00:00
|
|
|
|
2015-06-28 22:19:52 +00:00
|
|
|
scm {
|
|
|
|
url 'https://github.com/MinecraftForge/MinecraftForge'
|
|
|
|
connection 'scm:git:git://github.com/MinecraftForge/MinecraftForge.git'
|
|
|
|
developerConnection 'scm:git:git@github.com:MinecraftForge/MinecraftForge.git'
|
2013-11-10 03:48:53 +00:00
|
|
|
}
|
2013-11-20 00:47:50 +00:00
|
|
|
|
2015-06-28 22:19:52 +00:00
|
|
|
issueManagement {
|
|
|
|
system 'github'
|
|
|
|
url 'https://github.com/MinecraftForge/MinecraftForge/issues'
|
2013-11-20 00:47:50 +00:00
|
|
|
}
|
2015-06-28 22:19:52 +00:00
|
|
|
|
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name 'Forge Public License'
|
|
|
|
url 'https://raw.github.com/MinecraftForge/MinecraftForge/master/MinecraftForge-License.txt'
|
|
|
|
distribution 'repo'
|
|
|
|
}
|
2013-11-20 00:47:50 +00:00
|
|
|
}
|
2015-06-28 22:19:52 +00:00
|
|
|
|
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
id 'cpw'
|
|
|
|
name 'cpw'
|
|
|
|
roles { role 'developer' }
|
|
|
|
}
|
|
|
|
developer {
|
|
|
|
id 'LexManos'
|
|
|
|
name 'Lex Manos'
|
|
|
|
roles { role 'developer' }
|
|
|
|
}
|
|
|
|
developer {
|
|
|
|
id 'AbrarSyed'
|
|
|
|
name 'Abrar Syed'
|
|
|
|
roles { role 'contributor' }
|
|
|
|
}
|
2013-11-20 00:47:50 +00:00
|
|
|
}
|
2013-11-10 03:48:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-06-28 22:19:52 +00:00
|
|
|
|
|
|
|
// HELPER METHODS
|
|
|
|
|
|
|
|
import groovy.json.JsonSlurper;
|
|
|
|
|
|
|
|
String getServerClasspath(File file)
|
|
|
|
{
|
|
|
|
def node = new JsonSlurper().parse(file);
|
|
|
|
def out = new StringBuilder()
|
|
|
|
node.versionInfo.libraries.each { lib ->
|
|
|
|
if (lib.serverreq)
|
|
|
|
{
|
|
|
|
// group : artifact : version
|
|
|
|
def split = lib.name.split(':')
|
|
|
|
def group = split[0].replace('.', '/')
|
|
|
|
def artifact = split[1]
|
|
|
|
def version = split[2]
|
|
|
|
out += "libraries/$group/$artifact/$version/$artifact-${version}.jar "
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out += "minecraft_server.${minecraft.version}.jar"
|
|
|
|
|
|
|
|
return out.toString();
|
|
|
|
}
|
|
|
|
|
|
|
|
String getVersionFromJava(File file)
|
|
|
|
{
|
|
|
|
String major = "0";
|
|
|
|
String minor = "0";
|
|
|
|
String revision = "0";
|
|
|
|
String build = "0";
|
|
|
|
|
|
|
|
String prefix = "public static final int";
|
|
|
|
file.eachLine{ String s ->
|
|
|
|
s = s.trim();
|
|
|
|
if (s.startsWith(prefix))
|
|
|
|
{
|
|
|
|
s = s.substring(prefix.length(), s.length() - 1);
|
|
|
|
s = s.replace('=', ' ').replace("Version", "").replaceAll(" +", " ").trim();
|
|
|
|
String[] pts = s.split(" ");
|
|
|
|
|
|
|
|
if (pts[0].equals("major")) major = pts[pts.length - 1];
|
|
|
|
else if (pts[0] == "minor") minor = pts[pts.length - 1];
|
|
|
|
else if (pts[0] == "revision") revision = pts[pts.length - 1];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-05-21 13:18:51 +00:00
|
|
|
build = System.getenv("BUILD_NUMBER") ?: project.ext.properties.buildNumber ?: 0
|
|
|
|
|
2015-06-28 22:19:52 +00:00
|
|
|
|
|
|
|
String branch = null;
|
|
|
|
if (!System.getenv().containsKey("GIT_BRANCH"))
|
|
|
|
{
|
2016-07-07 21:23:06 +00:00
|
|
|
// TODO: use grgit - Tried to switch 07/07/16 - jgit broken on windows?
|
2015-06-28 22:19:52 +00:00
|
|
|
branch = "git rev-parse --abbrev-ref HEAD".execute().text.trim()
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
branch = System.getenv("GIT_BRANCH");
|
|
|
|
branch = branch.substring(branch.lastIndexOf('/') + 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
def out = "${minecraft.version.replace('-', '_')}-$major.$minor.$revision.$build"
|
|
|
|
|
2016-07-07 21:23:06 +00:00
|
|
|
if (branch && branch != 'master' && branch != 'HEAD' && branch != minecraft.version && branch != minecraft.version + '.0')
|
|
|
|
{
|
2016-11-16 07:38:23 +00:00
|
|
|
if (!(branch.endsWith('.x') && minecraft.version.startsWith(branch.substring(0, branch.length() -2))))
|
2016-07-07 21:23:06 +00:00
|
|
|
out += "-$branch"
|
|
|
|
}
|
2015-06-28 22:19:52 +00:00
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
2015-06-29 17:56:23 +00:00
|
|
|
|
2016-11-21 00:15:15 +00:00
|
|
|
reobfuscate {
|
|
|
|
extraSrg = [
|
|
|
|
'MD: net/minecraftforge/fml/common/registry/FMLControlledNamespacedRegistry/getKeys ()Ljava/util/Set; net/minecraftforge/fml/common/registry/FMLControlledNamespacedRegistry/getKeys ()Ljava/util/Set;'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-05-21 13:18:51 +00:00
|
|
|
task resetBuildNumber << {
|
|
|
|
project.ext.properties.buildNumber = 0;
|
|
|
|
ciWriteBuildNumber.execute()
|
|
|
|
}
|
2015-06-29 17:56:23 +00:00
|
|
|
// re-add old tasks for jenkins compat
|
|
|
|
// should be remvoed, and the jenkisn fixed when no longer building with FG 1.2
|
2016-06-30 07:17:17 +00:00
|
|
|
task setupForge { dependsOn 'setup', 'ciWriteBuildNumber' }
|
2015-06-29 17:56:23 +00:00
|
|
|
task buildPackages { dependsOn 'build' }
|
2016-03-07 02:02:44 +00:00
|
|
|
|
2016-03-14 01:32:53 +00:00
|
|
|
//Temporary hack to fix compile errors caused by mappings shading in Bootstrap
|
2016-05-18 12:11:56 +00:00
|
|
|
/*
|
2016-03-07 02:02:44 +00:00
|
|
|
task fixParams << {
|
|
|
|
logger.lifecycle('Fixing param names!')
|
|
|
|
def params = new File(extractMcpMappings.destinationDir, 'params.csv')
|
|
|
|
def text = params.text
|
2016-05-18 10:29:10 +00:00
|
|
|
text = text.replaceAll('p_180276_1_,biome,', 'p_180276_1_,biomeIn,')
|
2016-03-07 02:02:44 +00:00
|
|
|
params.write(text)
|
|
|
|
}
|
|
|
|
fixParams.dependsOn('extractMcpMappings')
|
|
|
|
extractMcpMappings.finalizedBy('fixParams')
|
2016-05-21 13:18:51 +00:00
|
|
|
*/
|