Skip to content

Commit

Permalink
started shading nn-jcenter libs
Browse files Browse the repository at this point in the history
  • Loading branch information
AbrarSyed committed Aug 9, 2015
1 parent db14487 commit 35e9e4b
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ repositories {
name = "eclipse"
url = "https://repo.eclipse.org/content/groups/eclipse/"
}
//jcenter()
mavenCentral()

// because of the GradleStart stuff
Expand All @@ -32,6 +33,8 @@ repositories {
configurations {
deployerJars
compileOnly
shade
compileOnly.extendsFrom shade
}

dependencies {
Expand All @@ -58,15 +61,22 @@ dependencies {
compile 'org.apache.httpcomponents:httpmime:4.3.3'

// mcp stuff
compile 'de.oceanlabs.mcp:RetroGuard:3.6.6'
compile 'de.oceanlabs.mcp:mcinjector:3.2-SNAPSHOT'
compile 'net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT'
shade 'de.oceanlabs.mcp:RetroGuard:3.6.6'
shade 'de.oceanlabs.mcp:mcinjector:3.2-SNAPSHOT'
shade 'net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT'

//Stuff used in the GradleStart classes
compileOnly 'com.mojang:authlib:1.5.16'
compileOnly "net.minecraft:launchwrapper:1.11"
}

sourceSets {
main.compileClasspath += configurations.shade;
main.runtimeClasspath += configurations.shade;
test.compileClasspath += configurations.shade;
test.runtimeClasspath += configurations.shade;
}

compileJava {
options.deprecation = true
options.compilerArgs += ["-Werror"]
Expand All @@ -84,6 +94,13 @@ processResources {
}

jar {

configurations.shade.each { dep ->
from(project.zipTree(dep)){
exclude 'META-INF', 'META-INF/**'
}
}

manifest {
attributes 'version':project.version
attributes 'javaCompliance': project.targetCompatibility
Expand Down

0 comments on commit 35e9e4b

Please sign in to comment.