aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle69
1 files changed, 35 insertions, 34 deletions
diff --git a/build.gradle b/build.gradle
index fc159f61f6..8949f060c3 100644
--- a/build.gradle
+++ b/build.gradle
@@ -2,8 +2,8 @@ buildscript {
repositories {
mavenCentral()
maven {
- name = "forge"
- url = "http://files.minecraftforge.net/maven"
+ name = "gt"
+ url = "https://gregtech.overminddl1.com/"
}
maven {
name = "sonatype"
@@ -32,12 +32,14 @@ file "build.properties" withReader {
}
version = "${config.gt.version}"
-group= "gregtech"
+group = "gregtech"
archivesBaseName = "gregtech"
-sourceCompatibility = JavaVersion.VERSION_1_8
-targetCompatibility = JavaVersion.VERSION_1_8
-compileJava.options.encoding("UTF-8")
+compileJava {
+ sourceCompatibility = JavaVersion.VERSION_1_8
+ targetCompatibility = JavaVersion.VERSION_1_8
+ options.encoding = "UTF-8"
+}
minecraft {
version = "${config.minecraft.version}-${config.forge.version}"
@@ -48,8 +50,8 @@ idea.module.inheritOutputDirs = true
repositories {
maven {
- name = 'Forge'
- url = 'http://files.minecraftforge.net/maven'
+ name = "gt"
+ url = "https://gregtech.overminddl1.com/"
}
maven {
name = "chickenbones"
@@ -67,7 +69,6 @@ repositories {
name = 'DVS1 Maven FS'
url = 'http://dvs1.progwml6.com/files/maven'
}
-
maven { // AppleCore
url = "http://www.ryanliptak.com/maven/"
}
@@ -75,12 +76,11 @@ repositories {
name = 'UsrvDE'
url = "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases/"
}
- ivy {
+ ivy {
name = 'gtnh_download_source_stupid_underscore_typo'
artifactPattern("http://downloads.gtnewhorizons.com/Mods_for_Jenkins/[module]_[revision].[ext]")
}
-
- ivy {
+ ivy {
name = 'gtnh_download_source'
artifactPattern("http://downloads.gtnewhorizons.com/Mods_for_Jenkins/[module]-[revision].[ext]")
}
@@ -88,6 +88,7 @@ repositories {
dependencies {
//Hard dep to start (Without this, it wont compile nor start)
+ compile 'com.google.code.findbugs:jsr305:1.3.9'
compile "net.industrial-craft:industrialcraft-2:${config.ic2.version}:dev"
//Hard dep to compile (Without this, it wont compile, not even as library)
@@ -97,14 +98,15 @@ dependencies {
api "codechicken:CodeChickenCore:${config.minecraft.version}-${config.codechickencore.version}:dev"
api "codechicken:NotEnoughItems:${config.minecraft.version}-${config.nei.version}:dev"
api "com.enderio.core:EnderCore:${config.enderiocore.version}:dev"
- api ("com.enderio:EnderIO:${config.enderio.version}:dev"){
+ api("com.enderio:EnderIO:${config.enderio.version}:dev") {
transitive = false
}
//Soft Depths (Without this, it wont compile, not needed as library)
+ compileOnly 'commons-io:commons-io:2.4'
compileOnly "eu.usrv:YAMCore:${config.minecraft.version}-${config.yamcore.version}:deobf"
compileOnly "tconstruct:TConstruct:${config.minecraft.version}-${config.tconstruct.version}:deobf"
- compileOnly "codechicken:Translocator:${config.minecraft.version}-${config.translocators.version}:dev"
+ compileOnly "codechicken:Translocator:${config.minecraft.version}-${config.translocators.version}:dev"
compileOnly "net.sengir.forestry:forestry_${config.minecraft.version}:${config.forestry.version}:dev"
compileOnly files("libs/Galacticraft-API-1.7-${config.gc.version}.jar")
compileOnly files("libs/GalacticraftCore-Dev-${config.gc.version}.jar")
@@ -115,8 +117,7 @@ dependencies {
compileOnly name: 'IC2NuclearControl', version: config.nc.version, ext: 'jar'
}
-processResources
-{
+processResources {
// this will ensure that this task is redone when the versions change.
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
@@ -124,32 +125,32 @@ processResources
// 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
+ expand 'version': project.version, 'mcversion': project.minecraft.version
}
-
- // copy everything else, thats not the mcmod.info
+
+ // copy everything else, that's not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
- exclude '**/Thumbs.db'
+ exclude '**/Thumbs.db'
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
- classifier = 'sources'
+ archiveClassifier.set('sources')
}
task devJar(type: Jar) {
from sourceSets.main.output
- classifier = 'dev'
+ archiveClassifier.set('dev')
}
task apiJar(type: Jar) {
from sourceSets.main.allSource
include("gregtech/api/**")
- classifier = 'api'
+ archiveClassifier.set('api')
}
artifacts {
@@ -158,17 +159,17 @@ artifacts {
archives(apiJar)
}
-task signJar(dependsOn: 'reobf'){
+task signJar(dependsOn: 'reobf') {
doLast {
ant.signjar(
- destDir: jar.destinationDir,
- jar: jar.getArchivePath(),
- alias: findProperty('keyStoreAlias') ?: '',
- keystore: findProperty('keyStore') ?: '',
- storepass: findProperty('keyStorePass') ?: '',
- digestalg: findProperty('signDigestAlg') ?: '',
- tsaurl: findProperty('signTSAurl') ?: '',
- verbose: true
- )
+ destDir: jar.getDestinationDirectory(),
+ jar: jar.getArchivePath(),
+ alias: findProperty('keyStoreAlias') ?: '',
+ keystore: findProperty('keyStore') ?: '',
+ storepass: findProperty('keyStorePass') ?: '',
+ digestalg: findProperty('signDigestAlg') ?: '',
+ tsaurl: findProperty('signTSAurl') ?: '',
+ verbose: true
+ )
}
}