MineLittlePony/build.gradle
Matthew Messinger 45f408cf1b Port hdskins to mixins.
Other changes to HDSkinManager
Allow hd skins to be toggled on demand
Support small arms.
2016-01-19 00:34:07 -05:00

132 lines
2.8 KiB
Groovy

buildscript {
repositories {
jcenter()
maven {
name 'forge'
url 'http://files.minecraftforge.net/maven'
}
maven {
name = 'sponge'
url = 'http://repo.spongepowered.org/maven'
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.0-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.1-SNAPSHOT'
}
}
plugins {
id 'mnm.gradle.ap-ide' version '1.0.2'
}
ext.voxellib = project ':voxellib'
ext.revision = 186
apply plugin: 'net.minecraftforge.gradle.tweaker-client'
apply plugin: 'org.spongepowered.mixin'
archivesBaseName = "MineLittlePony"
group = 'com.brohoof.minelp'
version = '1.8'
minecraft {
version = "1.8"
mappings = 'stable_18'
runDir = 'run'
replace '@VERSION@',project.version
tweakClass = 'com.mumfrey.liteloader.launch.LiteLoaderTweaker'
clientJvmArgs += '-Dmcpenv=true'
}
sourceSets {
def deps = [
configurations.forgeGradleMcDeps,
configurations.forgeGradleMc,
configurations.provided
]
main {
refMap = 'mixin.minelp.refmap.json'
}
common {
compileClasspath += files deps
}
hdskins {
compileClasspath += files deps
refMap = 'mixin.hdskins.refmap.json'
}
}
project('forge') {
apply plugin: 'net.minecraftforge.gradle.forge'
version = '0.0'
minecraft {
version = '1.8-11.14.3.1543'
mappings = rootProject.minecraft.mappings
runDir = rootProject.minecraft.runDir
replace '@VERSION@',project.version
}
dependencies {
provided rootProject
}
}
project('LiteLoader'){
apply plugin: 'mnm.gradle.ap-ide'
mcMappings = rootProject.minecraft.mappings
}
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'
}
}
allprojects {
repositories{
maven {
name 'sponge'
url 'http://repo.spongepowered.org/maven'
}
}
}
dependencies {
provided project('LiteLoader')
provided voxellib
compile sourceSets.common.output
compile sourceSets.hdskins.output
hdskinsCompile sourceSets.common.output
}
jar {
manifest.attributes.remove 'TweakClass'
}
task standaloneJar(type: Jar, dependsOn: [{voxellib.reobfObfJar}, {project('forge').compileJava}]) {
extension 'litemod'
from sourceSets*.output
from {project('forge').sourceSets.main.output}
// voxellib
from {voxellib.obfJar.archivePath}
classifier 'standalone'
}
artifacts {
archives standaloneJar
}
reobf {
jar.task.enabled = false
standaloneJar{}
}
sourceSets.main.refMap = 'mixin.minelp.refmap.json'
mixin {
defaultObfuscationEnv notch
}
task installMod(type: Copy, dependsOn: build) {
from standaloneJar.archivePath
into file("$System.env.APPDATA/.minecraft/mods")
}