Fixes #133, can now run standalone without ic2

This commit is contained in:
modmuss50 2015-08-27 16:29:13 +01:00
parent 5bceef3297
commit 3b6202bece

View file

@ -59,6 +59,11 @@ repositories {
} }
} }
configurations {
shade
compile.extendsFrom shade
}
def ENV = System.getenv() def ENV = System.getenv()
if (ENV.BUILD_NUMBER) { if (ENV.BUILD_NUMBER) {
version = "0.4.0." + "${System.getenv().BUILD_NUMBER}" version = "0.4.0." + "${System.getenv().BUILD_NUMBER}"
@ -92,7 +97,8 @@ dependencies {
if (!f.exists()) { if (!f.exists()) {
f.mkdir() f.mkdir()
} }
compile 'net.industrial-craft:industrialcraft-2:2.2.763-experimental:dev' compile 'net.industrial-craft:industrialcraft-2:2.2.767-experimental:dev'
shade 'net.industrial-craft:industrialcraft-2:2.2.767-experimental:api'
compile "codechicken:CodeChickenLib:1.7.10-1.1.3.136:dev" compile "codechicken:CodeChickenLib:1.7.10-1.1.3.136:dev"
compile "codechicken:CodeChickenCore:1.7.10-1.0.6.+:dev" compile "codechicken:CodeChickenCore:1.7.10-1.0.6.+:dev"
compile "codechicken:NotEnoughItems:1.7.10-1.0.4.+:dev" compile "codechicken:NotEnoughItems:1.7.10-1.0.4.+:dev"
@ -147,6 +153,11 @@ jar {
} }
exclude "**/*.psd" exclude "**/*.psd"
classifier = 'universal' classifier = 'universal'
configurations.shade.each { dep ->
from(project.zipTree(dep)){
exclude 'META-INF', 'META-INF/**'
}
}
} }
task apiJar(type: Jar) { task apiJar(type: Jar) {