2015-04-10 00:17:30 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
name = "forge"
|
|
|
|
url = "http://files.minecraftforge.net/maven"
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "sonatype"
|
|
|
|
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
2015-11-23 15:37:18 +01:00
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
|
2015-04-10 00:17:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-23 15:37:18 +01:00
|
|
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
2015-04-10 00:17:30 +02:00
|
|
|
apply plugin: 'maven'
|
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
|
2015-11-24 20:37:15 +01:00
|
|
|
sourceCompatibility = 1.7
|
|
|
|
targetCompatibility = 1.7
|
|
|
|
|
2015-04-10 10:43:45 +02:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
name = "ic2"
|
|
|
|
url = "http://maven.ic2.player.to/"
|
|
|
|
}
|
2015-04-12 11:56:23 +02:00
|
|
|
maven {
|
|
|
|
name "Mobius Repo"
|
|
|
|
url "http://mobiusstrip.eu/maven"
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name 'CB Repo'
|
|
|
|
url "http://chickenbones.net/maven/"
|
|
|
|
}
|
2015-04-20 21:08:14 +02:00
|
|
|
maven {
|
|
|
|
name = "Modmuss50"
|
2015-09-14 22:05:26 +02:00
|
|
|
url = "http://maven.modmuss50.me/"
|
2015-04-20 21:08:14 +02:00
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "Qmunity"
|
|
|
|
url = "http://maven.bluepowermod.com/"
|
|
|
|
}
|
2015-06-10 20:54:50 +02:00
|
|
|
maven {
|
|
|
|
name "TiC"
|
|
|
|
url "http://dvs1.progwml6.com/files/maven"
|
|
|
|
}
|
2015-06-10 21:22:44 +02:00
|
|
|
ivy {
|
|
|
|
name = 'ThaumCraft 4 API'
|
2015-12-28 11:57:22 +01:00
|
|
|
artifactPattern 'https://dl.dropboxusercontent.com/u/47135879/[module]-1.8.8-[revision]-[classifier].[ext]'
|
2015-06-10 21:22:44 +02:00
|
|
|
}
|
2015-07-02 20:55:06 +02:00
|
|
|
ivy {
|
|
|
|
name "MineTweaker3"
|
2015-12-28 11:57:22 +01:00
|
|
|
// artifactPattern "http://minetweaker3.powerofbytes.com/download/[module]-[classifier]-[revision].[ext]" //This is the offical MT download url
|
|
|
|
artifactPattern "http://www.blamejared.com/content/[module]-[classifier]-Full-[revision].[ext]" //This is a forked version of it to allow 1.8.8 support.
|
2015-07-02 20:55:06 +02:00
|
|
|
}
|
2015-12-28 11:57:22 +01:00
|
|
|
ivy {
|
|
|
|
name "BuildCraft"
|
|
|
|
artifactPattern "https://github.com/AlexIIL/BuildCraft/releases/download/[revision]/[module]-[classifier].[ext]"
|
|
|
|
}
|
2015-04-10 10:43:45 +02:00
|
|
|
}
|
|
|
|
|
2015-08-27 17:29:13 +02:00
|
|
|
configurations {
|
|
|
|
shade
|
|
|
|
compile.extendsFrom shade
|
|
|
|
}
|
|
|
|
|
2016-02-13 10:10:56 +01:00
|
|
|
version = "0.7.11"
|
2015-12-30 18:23:45 +01:00
|
|
|
|
2015-04-10 00:17:30 +02:00
|
|
|
def ENV = System.getenv()
|
|
|
|
if (ENV.BUILD_NUMBER) {
|
2015-12-30 18:23:45 +01:00
|
|
|
version = version + "." + "${System.getenv().BUILD_NUMBER}"
|
2015-04-10 00:17:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
minecraft {
|
2016-02-02 02:58:48 +01:00
|
|
|
version = "1.8.9-11.15.1.1722"
|
2015-12-30 12:57:06 +01:00
|
|
|
mappings = 'snapshot_20151230'
|
2015-04-10 00:17:30 +02:00
|
|
|
replace "@MODVERSION@", project.version
|
2015-11-26 21:50:17 +01:00
|
|
|
makeObfSourceJar = false
|
2015-11-29 10:52:45 +01:00
|
|
|
useDepAts = true
|
2015-11-29 11:42:34 +01:00
|
|
|
runDir = "run"
|
2015-04-10 00:17:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
group = 'TechReborn'
|
|
|
|
|
|
|
|
dependencies {
|
2015-11-23 15:37:18 +01:00
|
|
|
// compile 'net.industrial-craft:industrialcraft-2:2.2.796-experimental:dev'
|
|
|
|
// shade 'net.industrial-craft:industrialcraft-2:2.2.796-experimental:api'
|
|
|
|
// compile "codechicken:CodeChickenLib:1.7.10-1.1.3.140:dev"
|
|
|
|
// compile "codechicken:CodeChickenCore:1.7.10-1.0.7.+:dev"
|
|
|
|
// compile "codechicken:NotEnoughItems:1.7.10-1.0.5.+:dev"
|
|
|
|
// compile "codechicken:ForgeMultipart:1.7.10-1.2.0.345:dev"
|
2015-12-28 11:57:22 +01:00
|
|
|
compile ("mcp.mobius.waila:Waila:1.6.0-B3_1.8.8:dev") {
|
2015-12-13 20:41:46 +01:00
|
|
|
exclude group: 'mcp.mobius.waila'
|
|
|
|
}
|
2015-12-28 12:08:14 +01:00
|
|
|
// compile name: 'buildcraft', version: 'mc1.8.8-alpha-11', classifier: "-0.11-alpha-dev", ext: 'jar'
|
2015-11-23 15:37:18 +01:00
|
|
|
// compile "qmunity:QmunityLib:0.2.+:deobf"
|
|
|
|
// compile "com.pahimar.ee3:EquivalentExchange3:1.7.10-0.3.507:dev"
|
|
|
|
// compile "net.sengir.forestry:forestry_1.7.10:4.2.0.47:dev"
|
|
|
|
// shade "net.sengir.forestry:forestry_1.7.10:4.2.0.47:api"
|
2015-12-30 18:09:17 +01:00
|
|
|
compile "slimeknights:TConstruct:1.8.8-2.0.1.jenkins11:deobf"
|
2015-12-28 11:57:22 +01:00
|
|
|
// compile "mods.natura:natura:1.7.10-107.779621d:deobf"
|
2015-12-30 18:09:17 +01:00
|
|
|
compile "slimeknights.mantle:Mantle:1.8.8-0.6.jenkins60:deobf"
|
2015-12-31 00:57:58 +01:00
|
|
|
compile "com.github.glitchfiend.biomesoplenty:BiomesOPlenty:1.8.9-3.0.0.1552:deobf"
|
2015-12-28 11:57:22 +01:00
|
|
|
//compile 'Azanor:Thaumcraft:5.0.3:deobf@jar'
|
2015-12-28 12:08:14 +01:00
|
|
|
compile "com.github.azanor:baubles:1.1.2.0:deobf@jar"
|
2015-12-30 18:13:56 +01:00
|
|
|
compile name: "CraftTweaker", version: "1.8.8-3.0.0", classifier: "Dev"
|
2015-11-23 15:37:18 +01:00
|
|
|
// shade 'IC2-Classic-API-STANDALONE:IC2-Classic-API-STANDALONE:1.1.0.19-5:api'
|
2016-02-20 17:59:31 +01:00
|
|
|
deobfCompile 'RebornCore:RebornCore-1.8.9:1.4.4.+:universal'
|
2016-02-18 08:44:15 +01:00
|
|
|
deobfCompile "mezz.jei:jei_1.8.9:2.27.+"
|
2015-11-08 13:15:45 +01:00
|
|
|
|
2015-09-28 21:30:24 +02:00
|
|
|
testCompile 'junit:junit:4.12'
|
2015-04-10 00:17:30 +02:00
|
|
|
}
|
|
|
|
|
2015-06-24 00:41:03 +02:00
|
|
|
|
|
|
|
processResources
|
|
|
|
{
|
2015-11-26 21:43:56 +01:00
|
|
|
// this will ensure that this task is redone when the versions change.
|
|
|
|
inputs.property "version", project.version
|
|
|
|
inputs.property "mcversion", project.minecraft.version
|
|
|
|
|
2015-06-24 00:41:03 +02:00
|
|
|
// replace stuff in mcmod.info, nothing else
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
|
|
include 'mcmod.info'
|
|
|
|
|
|
|
|
// replace version and mcversion
|
2015-07-01 17:53:03 +02:00
|
|
|
expand 'version':project.version, 'mcversion':project.minecraft.version
|
2015-06-24 00:41:03 +02:00
|
|
|
}
|
|
|
|
|
2015-11-26 21:43:56 +01:00
|
|
|
// copy everything else, thats not the mcmod.info
|
2015-06-24 00:41:03 +02:00
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
|
|
exclude 'mcmod.info'
|
|
|
|
}
|
|
|
|
}
|
2015-07-01 17:53:03 +02:00
|
|
|
|
2015-11-26 21:43:56 +01:00
|
|
|
|
2015-04-10 00:17:30 +02:00
|
|
|
task deobfJar(type: Jar) {
|
|
|
|
from sourceSets.main.output
|
|
|
|
exclude "**/*.psd"
|
|
|
|
classifier = 'dev'
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
exclude "**/*.psd"
|
|
|
|
classifier = 'universal'
|
2015-11-24 20:44:24 +01:00
|
|
|
// configurations.shade.each { dep ->
|
|
|
|
// from(project.zipTree(dep)){
|
|
|
|
// include 'ic2/api/'
|
|
|
|
// include 'forestry/api/fuels/'
|
|
|
|
// exclude 'META-INF', 'META-INF/**', '**/*.java'
|
|
|
|
// }
|
|
|
|
// }
|
2015-04-10 00:17:30 +02:00
|
|
|
}
|
|
|
|
|
2015-04-26 10:07:59 +02:00
|
|
|
task apiJar(type: Jar) {
|
2015-06-22 22:32:46 +02:00
|
|
|
from sourceSets.main.allSource
|
|
|
|
from sourceSets.main.output
|
|
|
|
include 'techreborn/api/**/*'
|
|
|
|
|
|
|
|
classifier = "api"
|
2015-04-12 11:36:12 +02:00
|
|
|
}
|
|
|
|
|
2015-04-26 10:07:59 +02:00
|
|
|
apiJar.mustRunAfter deobfJar
|
2015-04-12 11:36:12 +02:00
|
|
|
|
2015-04-10 00:17:30 +02:00
|
|
|
artifacts {
|
|
|
|
archives deobfJar
|
2015-04-26 10:07:59 +02:00
|
|
|
archives apiJar
|
2015-04-10 00:17:30 +02:00
|
|
|
}
|
|
|
|
|
2015-12-06 11:32:32 +01:00
|
|
|
build.dependsOn deobfJar, apiJar
|
2015-11-22 17:24:50 +01:00
|
|
|
|
2015-04-10 00:17:30 +02:00
|
|
|
uploadArchives {
|
|
|
|
repositories {
|
|
|
|
mavenDeployer {
|
2016-02-23 22:59:06 +01:00
|
|
|
//This is used when the build is done on a slave node
|
|
|
|
if (project.hasProperty('mavenPass'))
|
|
|
|
{
|
|
|
|
println 'Uploading to remote Maven Repo'
|
|
|
|
repository(url: "http://mavenupload.modmuss50.me/") {
|
|
|
|
authentication(userName: "buildslave", password: project.getProperty('mavenPass'))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
//this is when the build is executed on the master node
|
|
|
|
println 'Uploading to local Maven Repo'
|
|
|
|
repository(url: "file:///var/www/maven/")
|
|
|
|
}
|
2015-04-10 00:17:30 +02:00
|
|
|
pom {
|
|
|
|
groupId = "TechReborn"
|
|
|
|
version = project.version
|
|
|
|
artifactId = project.archivesBaseName
|
|
|
|
project {
|
|
|
|
name project.archivesBaseName
|
|
|
|
packaging 'jar'
|
|
|
|
description 'TechReborn'
|
|
|
|
url 'https://github.com/TechReborn/TechReborn'
|
|
|
|
scm {
|
|
|
|
url 'https://github.com/TechReborn/TechReborn'
|
|
|
|
connection 'scm:git:git@github.com:TechReborn/TechReborn.git'
|
|
|
|
developerConnection 'scm:git:git@github.com:TechReborn/TechReborn.git'
|
|
|
|
}
|
|
|
|
issueManagement {
|
|
|
|
system 'github'
|
|
|
|
url 'https://github.com/TechReborn/TechReborn/issues'
|
|
|
|
}
|
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name 'License'
|
2015-04-12 11:36:12 +02:00
|
|
|
url 'https://raw.githubusercontent.com/TechReborn/TechReborn/master/LICENSE.md'
|
2015-04-10 00:17:30 +02:00
|
|
|
distribution 'repo'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
id 'modmuss50'
|
|
|
|
name 'modmuss50'
|
|
|
|
roles { role 'developer' }
|
|
|
|
}
|
2015-04-12 11:36:12 +02:00
|
|
|
developer {
|
|
|
|
id 'Gigabit101'
|
|
|
|
name 'Gigabit101'
|
2015-10-03 15:12:30 +02:00
|
|
|
roles { role 'developer' }
|
2015-04-12 11:36:12 +02:00
|
|
|
}
|
2015-04-10 00:17:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-04-12 11:56:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
task wrapper(type: Wrapper) {
|
|
|
|
//To update the wrapper change the version bellow then run: gradle wrapper
|
2016-02-24 12:05:28 +01:00
|
|
|
gradleVersion = '2.11'
|
2015-10-02 08:48:44 +02:00
|
|
|
}
|