This commit is contained in:
Matthew Messinger 2015-11-20 00:53:39 -05:00
parent 778630c6b5
commit 2bb8f7f8ce

View file

@ -12,35 +12,25 @@ minecraft {
version = "1.8" version = "1.8"
mappings = 'snapshot_20151027' mappings = 'snapshot_20151027'
runDir = 'run' runDir = 'run'
tweakClass = 'com.mumfrey.liteloader.launch.LiteLoaderTweaker'
replace '@VERSION@',project.version replace '@VERSION@',project.version
tweakClass = 'com.mumfrey.liteloader.launch.LiteLoaderTweaker'
clientJvmArgs += '-Dmcpenv=true'
} }
project('common') { project('common') {
apply plugin: 'java' apply plugin: 'net.minecraftforge.gradle.tweaker-client'
apply plugin: 'eclipse' minecraft {
version = rootProject.minecraft.version
sourceCompatibility = 1.6 mappings = rootProject.minecraft.mappings
targetCompatibility = 1.6 runDir = rootProject.minecraft.runDir
tweakClass = rootProject.minecraft.tweakClass
sourceSets.main {
compileClasspath += rootProject.configurations.forgeGradleMc
} }
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') { project('forge') {
apply plugin: 'net.minecraftforge.gradle.forge' apply plugin: 'net.minecraftforge.gradle.forge'
minecraft { minecraft {
version = '1.8-11.14.3.1543' version = '1.8-11.14.3.1543'
mappings = rootProject.minecraft.mappings mappings = rootProject.minecraft.mappings
runDir = '../run' runDir = rootProject.minecraft.runDir
replace '@VERSION@',project.version replace '@VERSION@',project.version
} }
dependencies { dependencies {