2015-01-11 20:59:45 +01:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2016-02-27 13:21:27 +01:00
|
|
|
jcenter()
|
2015-01-11 20:59:45 +01:00
|
|
|
maven {
|
|
|
|
name = "forge"
|
|
|
|
url = "http://files.minecraftforge.net/maven"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
2016-07-09 22:30:50 +02:00
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
|
2015-01-11 20:59:45 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-27 13:21:27 +01:00
|
|
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
2015-01-11 20:59:45 +01:00
|
|
|
|
2015-10-07 16:36:04 +02:00
|
|
|
ext.configFile = file "build.properties"
|
|
|
|
configFile.withReader {
|
|
|
|
def prop = new Properties()
|
|
|
|
prop.load(it)
|
|
|
|
project.ext.config = new ConfigSlurper().parse prop
|
|
|
|
}
|
|
|
|
|
2017-01-05 00:09:10 +01:00
|
|
|
version=config.mod.version
|
|
|
|
group= "modtweaker" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
2015-10-07 16:36:04 +02:00
|
|
|
archivesBaseName = "ModTweaker2"
|
2015-01-11 20:59:45 +01:00
|
|
|
|
|
|
|
minecraft {
|
2016-07-09 22:30:50 +02:00
|
|
|
version = "${config.forge.version}"
|
2015-01-11 20:59:45 +01:00
|
|
|
runDir = "eclipse"
|
2015-12-09 05:05:50 +01:00
|
|
|
replace "@modVersion@", config.mod.version
|
2016-12-12 20:39:07 +01:00
|
|
|
mappings = "snapshot_20161111"
|
2015-01-11 20:59:45 +01:00
|
|
|
}
|
2016-09-17 01:43:26 +02:00
|
|
|
sourceCompatibility = targetCompatibility = "1.8" // Need this here so eclipse task generates correctly.
|
|
|
|
compileJava {
|
|
|
|
sourceCompatibility = targetCompatibility = "1.8"
|
|
|
|
}
|
2015-10-13 00:07:17 +02:00
|
|
|
repositories {
|
2016-10-27 21:30:30 +02:00
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
name 'Jared'
|
2017-01-05 00:09:10 +01:00
|
|
|
url 'http://blamejared.com/maven'
|
2016-10-27 21:30:30 +02:00
|
|
|
}
|
2016-11-15 20:50:03 +01:00
|
|
|
maven {
|
|
|
|
name = 'raoulvdberge'
|
|
|
|
url 'https://dl.bintray.com/raoulvdberge/dev/'
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = 'amadornes'
|
|
|
|
url "http://maven.amadornes.com/"
|
|
|
|
}
|
2017-01-03 16:40:51 +01:00
|
|
|
maven {
|
|
|
|
url "http://dvs1.progwml6.com/files/maven"
|
|
|
|
}
|
2015-10-13 00:07:17 +02:00
|
|
|
}
|
|
|
|
|
2016-10-27 21:30:30 +02:00
|
|
|
dependencies {
|
2017-01-05 00:09:10 +01:00
|
|
|
deobfCompile "com.blamejared:MTLib:1.0.0.7"
|
|
|
|
deobfCompile "refinedstorage:refinedstorage:1.2.5-559"
|
|
|
|
deobfCompile "MCMultiPart:MCMultiPart:1.3.0:universal"
|
|
|
|
deobfCompile "mezz.jei:jei_1.10.2:3.14.2.398"
|
2016-07-09 22:30:50 +02:00
|
|
|
}
|
2015-10-13 00:07:17 +02:00
|
|
|
|
2015-01-11 20:59:45 +01:00
|
|
|
processResources
|
2017-01-05 00:09:10 +01:00
|
|
|
{
|
|
|
|
inputs.property "version", project.version
|
|
|
|
inputs.property "mcversion", config.minecraft.version
|
2016-02-27 13:21:27 +01:00
|
|
|
|
2017-01-05 00:09:10 +01:00
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
|
|
include 'mcmod.info'
|
|
|
|
|
|
|
|
expand 'version':project.version, 'mcversion':config.minecraft.version
|
|
|
|
}
|
2017-01-05 00:09:10 +01:00
|
|
|
|
2017-01-05 00:09:10 +01:00
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
|
|
exclude 'mcmod.info'
|
|
|
|
}
|
|
|
|
}
|
2015-01-24 01:42:07 +01:00
|
|
|
|
|
|
|
task deobfJar(type: Jar) {
|
|
|
|
from sourceSets.main.output
|
|
|
|
classifier = 'deobf'
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.build.dependsOn deobfJar
|