Skip to content

Commit

Permalink
Exclude unneeded dependencies. Halves the jar size
Browse files Browse the repository at this point in the history
  • Loading branch information
Thinkofname committed Aug 20, 2014
1 parent 92c75ee commit 539d195
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ repositories {
jar {
archiveName = "vanillacord.jar"
manifest.attributes("Main-Class": "uk.co.thinkofdeath.vanillacord.Main")
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
from {
configurations.compile
.filter {
!it.name.contains("netty") \
&& !it.name.contains("authlib") \
&& !it.name.contains("commons") \
&& !it.name.contains("log4j")
}
.collect { it.isDirectory() ? it : zipTree(it) }
}
}

dependencies {
Expand Down

0 comments on commit 539d195

Please sign in to comment.