MineLittlePony/build.gradle
2015-12-08 16:53:08 -05:00

73 lines
1.6 KiB
Groovy

plugins {
id 'net.minecraftforge.gradle.tweaker-client' version '2.0.2'
}
ext.voxellib = project ':voxellib'
ext.revision = 186
archivesBaseName = "MineLittlePony"
group = 'com.brohoof.minelp'
version = '1.8'
minecraft {
version = "1.8"
mappings = 'snapshot_20151027'
runDir = 'run'
replace '@VERSION@',project.version
tweakClass = 'com.mumfrey.liteloader.launch.LiteLoaderTweaker'
clientJvmArgs += '-Dmcpenv=true'
}
project('forge') {
apply plugin: 'net.minecraftforge.gradle.forge'
minecraft {
version = '1.8-11.14.3.1543'
mappings = rootProject.minecraft.mappings
runDir = rootProject.minecraft.runDir
replace '@VERSION@',project.version
}
dependencies {
provided rootProject
}
}
processResources {
def props = [
version: version,
mcversion: minecraft.version,
revision: revision
]
inputs.properties props
from(sourceSets.main.resources.srcDirs) {
include 'litemod.json'
expand props
}
from(sourceSets.main.resources.srcDirs) {
exclude 'litemod.json'
}
}
repositories.flatDir {
dir 'liteloader'
}
dependencies {
deobfProvided 'com.mumfrey:liteloader:1.8-SNAPSHOT:srgnames'
provided voxellib
}
jar {
manifest.attributes.remove 'TweakClass'
}
task standaloneJar(type: Jar, dependsOn: [{voxellib.reobfObfJar}, {project('forge').compileJava}]) {
extension 'litemod'
from sourceSets.main.output
from {project('forge').sourceSets.main.output}
// voxellib
from {voxellib.obfJar.archivePath}
classifier 'standalone'
}
artifacts {
archives standaloneJar
}
reobf{
jar.task.enabled = false
standaloneJar{}
}