From 2bb8f7f8ce7af3348eaa678bb38614d358e278ed Mon Sep 17 00:00:00 2001 From: Matthew Messinger Date: Fri, 20 Nov 2015 00:53:39 -0500 Subject: [PATCH] Bah --- build.gradle | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/build.gradle b/build.gradle index 546dad7b..57acf863 100644 --- a/build.gradle +++ b/build.gradle @@ -12,35 +12,25 @@ minecraft { version = "1.8" mappings = 'snapshot_20151027' runDir = 'run' - tweakClass = 'com.mumfrey.liteloader.launch.LiteLoaderTweaker' replace '@VERSION@',project.version + tweakClass = 'com.mumfrey.liteloader.launch.LiteLoaderTweaker' + clientJvmArgs += '-Dmcpenv=true' } project('common') { - apply plugin: 'java' - apply plugin: 'eclipse' - - sourceCompatibility = 1.6 - targetCompatibility = 1.6 - - sourceSets.main { - compileClasspath += rootProject.configurations.forgeGradleMc + apply plugin: 'net.minecraftforge.gradle.tweaker-client' + minecraft { + version = rootProject.minecraft.version + mappings = rootProject.minecraft.mappings + runDir = rootProject.minecraft.runDir + tweakClass = rootProject.minecraft.tweakClass } - eclipse.classpath.file.withXml { - def path = "$gradle.gradleUserHomeDir/caches/minecraft/net/minecraft/minecraft/$minecraft.version/${minecraft.mappings.replace('_','/')}/minecraftSrc-$minecraft.version" - it.asNode().appendNode('classpathentry',[ - kind: "lib", - path: "${path}.jar", - sourcepath:"$path-sources.jar" - ]) - } - } project('forge') { apply plugin: 'net.minecraftforge.gradle.forge' minecraft { version = '1.8-11.14.3.1543' mappings = rootProject.minecraft.mappings - runDir = '../run' + runDir = rootProject.minecraft.runDir replace '@VERSION@',project.version } dependencies {