2013-11-10 03:48:53 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2017-08-04 00:30:43 +00:00
|
|
|
mavenLocal()
|
2018-08-27 17:10:07 +00:00
|
|
|
maven { url = 'http://files.minecraftforge.net/maven' }
|
|
|
|
jcenter()
|
2013-11-10 03:48:53 +00:00
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
2018-08-27 17:10:07 +00:00
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:3.+'
|
2013-11-10 03:48:53 +00:00
|
|
|
}
|
|
|
|
}
|
2018-06-30 18:57:16 +00:00
|
|
|
|
2018-08-27 17:10:07 +00:00
|
|
|
apply plugin: 'eclipse'
|
2013-11-10 03:48:53 +00:00
|
|
|
|
2015-06-28 22:19:52 +00:00
|
|
|
group = 'net.minecraftforge'
|
2018-08-27 17:10:07 +00:00
|
|
|
version = '1.0.0'
|
2015-06-28 22:19:52 +00:00
|
|
|
|
2018-08-27 17:10:07 +00:00
|
|
|
project(':mcp') {
|
|
|
|
apply plugin: 'net.minecraftforge.gradle.forgedev.mcp'
|
|
|
|
mcp {
|
|
|
|
config = 'de.oceanlabs.mcp:mcp_config:1.13@zip'
|
|
|
|
pipeline = 'joined'
|
2018-06-30 18:57:16 +00:00
|
|
|
}
|
2018-06-21 06:39:31 +00:00
|
|
|
}
|
|
|
|
|
2018-08-27 17:10:07 +00:00
|
|
|
project(':clean') {
|
|
|
|
evaluationDependsOn(':mcp')
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'net.minecraftforge.gradle.forgedev.patcher'
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2018-03-24 03:42:33 +00:00
|
|
|
}
|
2018-08-27 17:10:07 +00:00
|
|
|
patcher {
|
|
|
|
parent = project(':mcp')
|
|
|
|
patchedSrc = file('src/main/java')
|
|
|
|
mappings channel: 'snapshot', version: '20180813-1.12'
|
|
|
|
mcVersion = '1.13'
|
2018-03-24 03:42:33 +00:00
|
|
|
}
|
2018-09-05 00:23:45 +00:00
|
|
|
task runclient(type: JavaExec) {
|
|
|
|
doFirst {
|
|
|
|
mkdir 'runclient'
|
|
|
|
}
|
|
|
|
classpath sourceSets.main.runtimeClasspath
|
|
|
|
args = ['--accessToken', '0', '--version', '1.13']
|
|
|
|
main 'net.minecraft.client.main.Main'
|
|
|
|
workingDir 'runclient'
|
|
|
|
}
|
2018-02-26 23:36:39 +00:00
|
|
|
}
|
|
|
|
|
2018-08-27 17:10:07 +00:00
|
|
|
project(':forge') {
|
|
|
|
evaluationDependsOn(':clean')
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'net.minecraftforge.gradle.forgedev.patcher'
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
|
|
|
srcDir "$rootDir/src/main/java"
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
srcDir "$rootDir/src/main/resources"
|
|
|
|
}
|
2018-03-24 03:42:33 +00:00
|
|
|
}
|
2018-02-26 23:36:39 +00:00
|
|
|
}
|
2018-08-27 17:10:07 +00:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2015-08-15 16:56:56 +00:00
|
|
|
}
|
2018-08-27 17:10:07 +00:00
|
|
|
patcher {
|
|
|
|
parent = project(':clean')
|
|
|
|
patches = file("$rootDir/patches/minecraft")
|
|
|
|
patchedSrc = file('src/main/java')
|
|
|
|
accessTransformer = file("$rootDir/src/main/resources/forge_at.cfg")
|
|
|
|
srgPatches = false
|
2015-08-26 17:57:51 +00:00
|
|
|
}
|
2018-08-27 17:10:07 +00:00
|
|
|
applyPatches {
|
|
|
|
canonicalizeAccess true
|
|
|
|
canonicalizeWhitespace true
|
|
|
|
maxFuzz 3
|
2015-08-15 17:16:00 +00:00
|
|
|
}
|
2018-08-27 17:10:07 +00:00
|
|
|
dependencies {
|
|
|
|
implementation project(':clean')
|
|
|
|
implementation 'cpw.mods:modlauncher:0.1+'
|
|
|
|
implementation 'net.minecraftforge:accesstransformers:0.10+:shadowed'
|
|
|
|
implementation 'net.minecraftforge:eventbus:0.1+:service'
|
|
|
|
implementation 'net.minecraftforge:forgespi:0.1+'
|
|
|
|
implementation 'net.minecraftforge:coremods:0.1+'
|
|
|
|
implementation 'com.electronwill.night-config:core:3.4.0'
|
|
|
|
implementation 'com.electronwill.night-config:toml:3.4.0'
|
2018-09-06 01:00:14 +00:00
|
|
|
implementation 'org.jline:jline:3.5.1'
|
|
|
|
implementation 'org.apache.maven:maven-artifact:3.5.3'
|
|
|
|
implementation 'java3d:vecmath:1.5.2'
|
2015-08-20 20:42:58 +00:00
|
|
|
}
|
2013-11-20 00:47:50 +00:00
|
|
|
|
2018-08-27 17:10:07 +00:00
|
|
|
configurations {
|
|
|
|
ecj
|
2013-11-10 03:48:53 +00:00
|
|
|
}
|
2015-06-28 22:19:52 +00:00
|
|
|
|
2018-08-27 17:10:07 +00:00
|
|
|
dependencies {
|
|
|
|
ecj 'org.eclipse.jdt.core.compiler:ecj:4.6.1'
|
2015-06-28 22:19:52 +00:00
|
|
|
}
|
|
|
|
|
2018-08-27 17:10:07 +00:00
|
|
|
compileJava {
|
|
|
|
options.fork = true
|
|
|
|
options.failOnError = false
|
|
|
|
options.forkOptions.with {
|
|
|
|
executable = 'java'
|
|
|
|
jvmArgs = ['-classpath', project.configurations.ecj.asPath, 'org.eclipse.jdt.internal.compiler.batch.Main', '-nowarn']
|
2015-06-28 22:19:52 +00:00
|
|
|
}
|
|
|
|
}
|
2018-09-05 00:23:45 +00:00
|
|
|
|
2018-08-27 17:10:07 +00:00
|
|
|
task runclient(type: JavaExec) {
|
2018-09-05 00:23:45 +00:00
|
|
|
doFirst {
|
|
|
|
mkdir 'runclient'
|
|
|
|
}
|
|
|
|
doFirst {
|
|
|
|
copy {
|
|
|
|
from sourceSets.main.resources
|
|
|
|
into "$buildDir/classes/java/main"
|
|
|
|
}
|
|
|
|
}
|
2018-08-27 17:10:07 +00:00
|
|
|
classpath sourceSets.main.runtimeClasspath
|
|
|
|
main 'net.minecraftforge.fml.LaunchTesting'
|
|
|
|
systemProperties target:'fmldevclient'
|
2018-08-27 18:11:24 +00:00
|
|
|
workingDir 'runclient'
|
2015-06-28 22:19:52 +00:00
|
|
|
}
|
|
|
|
|
2018-08-27 17:10:07 +00:00
|
|
|
task runserver(type: JavaExec) {
|
2018-08-27 18:11:24 +00:00
|
|
|
doFirst {
|
|
|
|
mkdir 'runserver'
|
|
|
|
}
|
2018-08-27 17:10:07 +00:00
|
|
|
classpath sourceSets.main.runtimeClasspath
|
|
|
|
main 'net.minecraftforge.fml.LaunchTesting'
|
2018-08-27 18:11:24 +00:00
|
|
|
args 'nogui'
|
2018-08-27 17:10:07 +00:00
|
|
|
systemProperties target:'fmldevserver'
|
2018-08-27 18:11:24 +00:00
|
|
|
workingDir 'runserver'
|
2016-07-07 21:23:06 +00:00
|
|
|
}
|
2015-06-28 22:19:52 +00:00
|
|
|
}
|
2015-06-29 17:56:23 +00:00
|
|
|
|
2018-08-27 17:10:07 +00:00
|
|
|
//evaluationDependsOnChildren()
|
|
|
|
task setup() {
|
|
|
|
dependsOn ':clean:extractMapped'
|
|
|
|
dependsOn ':forge:extractMapped' //These must be strings so that we can do lazy resolution. Else we need evaluationDependsOnChildren above
|
2016-11-21 00:15:15 +00:00
|
|
|
}
|
|
|
|
|
2016-03-07 02:02:44 +00:00
|
|
|
|