MineLittlePony/build.gradle
Matthew Messinger 2f01397d5e Change package
2015-11-17 00:09:04 -05:00

57 lines
1.2 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'
tweakClass = 'com.mumfrey.liteloader.launch.LiteLoaderTweaker'
replace '@VERSION@',project.version
}
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'
extension 'litemod'
}
task standaloneJar(type: Jar, dependsOn: [{voxellib.build}, reobfJar]) {
extension 'litemod'
from zipTree(jar.archivePath)
// voxellib
from {voxellib.jar.archivePath}
classifier 'standalone'
}
artifacts {
archives standaloneJar
}