2015-08-21 19:45:39 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2016-08-05 17:05:35 +00:00
|
|
|
jcenter()
|
2015-08-21 19:45:39 +00:00
|
|
|
maven {
|
|
|
|
name = "forge"
|
|
|
|
url = "http://files.minecraftforge.net/maven"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
2017-10-02 19:37:18 +00:00
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
|
2015-08-21 19:45:39 +00:00
|
|
|
}
|
|
|
|
}
|
2016-08-05 17:05:35 +00:00
|
|
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
2015-08-21 19:45:39 +00:00
|
|
|
|
2015-10-19 02:50:44 +00:00
|
|
|
file "build.properties" withReader {
|
|
|
|
def prop = new Properties()
|
|
|
|
prop.load(it)
|
|
|
|
ext.config = new ConfigSlurper().parse prop
|
|
|
|
}
|
|
|
|
|
|
|
|
version = "${config.gt.version}"
|
2017-09-10 19:56:06 +00:00
|
|
|
group = "gregtech"
|
2015-08-21 19:45:39 +00:00
|
|
|
archivesBaseName = "gregtech"
|
|
|
|
|
|
|
|
minecraft {
|
2015-10-19 02:50:44 +00:00
|
|
|
version = "${config.minecraft.version}-${config.forge.version}"
|
2017-10-02 19:37:18 +00:00
|
|
|
mappings = "snapshot_20170928"
|
2016-08-05 16:33:08 +00:00
|
|
|
runDir = "run"
|
2015-08-21 19:45:39 +00:00
|
|
|
}
|
|
|
|
|
2015-10-19 02:50:44 +00:00
|
|
|
configurations {
|
|
|
|
provided
|
|
|
|
embedded
|
|
|
|
compile.extendsFrom provided, embedded
|
|
|
|
}
|
2015-08-21 19:45:39 +00:00
|
|
|
|
2015-10-19 02:50:44 +00:00
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
name = "ic2, forestry"
|
|
|
|
url = "http://maven.ic2.player.to/"
|
|
|
|
}
|
2016-08-10 19:43:37 +00:00
|
|
|
maven { //JEI
|
2017-09-23 15:26:34 +00:00
|
|
|
name = "Progwml6 maven"
|
|
|
|
url = "http://dvs1.progwml6.com/files/maven"
|
2016-08-10 19:43:37 +00:00
|
|
|
}
|
2017-10-02 19:37:18 +00:00
|
|
|
maven {
|
|
|
|
name = "tterrag maven"
|
|
|
|
url = "http://maven.tterrag.com/"
|
|
|
|
}
|
2017-09-10 19:56:06 +00:00
|
|
|
maven {
|
|
|
|
name = "CurseForge"
|
|
|
|
url = "https://minecraft.curseforge.com/api/maven/"
|
2017-07-05 12:37:38 +00:00
|
|
|
}
|
2015-10-19 02:50:44 +00:00
|
|
|
}
|
2015-08-21 19:45:39 +00:00
|
|
|
|
2015-10-19 02:50:44 +00:00
|
|
|
dependencies {
|
2017-12-30 22:49:20 +00:00
|
|
|
deobfCompile("net.sengir.forestry:forestry_${config.minecraft.version}:${config.forestry.version}") {
|
|
|
|
transitive = false
|
|
|
|
}
|
2017-10-02 19:37:18 +00:00
|
|
|
// deobfCompile "com.enderio.core:EnderCore:${config.minecraft.version}-${config.endercore.version}:dev"
|
|
|
|
// deobfCompile "com.enderio:EnderIO:${config.minecraft.version}-${config.enderio.version}:dev"
|
2017-09-23 15:26:34 +00:00
|
|
|
|
|
|
|
// compile against the JEI API but do not include it at runtime
|
2017-12-30 22:49:20 +00:00
|
|
|
deobfCompile "mezz.jei:jei_${config.minecraft.version}:${config.jei.version}:api"
|
2017-09-23 15:26:34 +00:00
|
|
|
// at runtime, use the full JEI jar
|
2017-12-30 22:49:20 +00:00
|
|
|
runtime "mezz.jei:jei_${config.minecraft.version}:${config.jei.version}"
|
2017-09-23 15:26:34 +00:00
|
|
|
|
2017-08-23 20:15:46 +00:00
|
|
|
// deobfCompile name: 'worldcontrol', version: config.worldcontrol.version, ext: 'jar'
|
|
|
|
// deobfCompile name: 'CoFHCore', version: "${config.minecraft.version}-${config.cofh.version}", ext: 'jar'
|
2015-08-21 19:45:39 +00:00
|
|
|
}
|
2016-09-12 11:07:17 +00:00
|
|
|
|
2017-04-05 14:31:45 +00:00
|
|
|
sourceCompatibility = "1.8"
|
|
|
|
targetCompatibility = "1.8"
|
|
|
|
|
2016-09-12 11:07:17 +00:00
|
|
|
compileJava {
|
|
|
|
sourceCompatibility = "1.8"
|
|
|
|
targetCompatibility = "1.8"
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|
2015-08-21 19:45:39 +00:00
|
|
|
|
|
|
|
processResources
|
|
|
|
{
|
|
|
|
// this will ensure that this task is redone when the versions change.
|
|
|
|
inputs.property "version", project.version
|
|
|
|
inputs.property "mcversion", project.minecraft.version
|
|
|
|
|
|
|
|
// replace stuff in mcmod.info, nothing else
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
|
|
include 'mcmod.info'
|
|
|
|
|
|
|
|
// replace version and mcversion
|
|
|
|
expand 'version':project.version, 'mcversion':project.minecraft.version
|
|
|
|
}
|
|
|
|
|
|
|
|
// copy everything else, thats not the mcmod.info
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
|
|
exclude 'mcmod.info'
|
|
|
|
}
|
|
|
|
}
|
2015-10-19 02:50:44 +00:00
|
|
|
|
2016-08-05 17:05:35 +00:00
|
|
|
task source(type: Jar) {
|
2015-10-19 02:50:44 +00:00
|
|
|
from sourceSets.main.allSource
|
|
|
|
classifier = 'sources'
|
2015-10-03 13:23:52 +00:00
|
|
|
}
|
2015-10-19 02:50:44 +00:00
|
|
|
|
2016-08-05 17:05:35 +00:00
|
|
|
task dev(type: Jar) {
|
2015-10-19 02:50:44 +00:00
|
|
|
from sourceSets.main.output
|
|
|
|
classifier = 'dev'
|
2015-10-03 13:23:52 +00:00
|
|
|
}
|
2015-10-19 02:50:44 +00:00
|
|
|
|
2015-10-03 13:23:52 +00:00
|
|
|
artifacts {
|
2016-08-05 17:05:35 +00:00
|
|
|
archives dev
|
|
|
|
archives source
|
2015-10-03 13:23:52 +00:00
|
|
|
}
|