Should fix jar size

dev/0.11
modmuss50 2018-05-14 12:06:57 +01:00
parent eee410a8f0
commit 0979217d0b
1 changed files with 3 additions and 2 deletions

View File

@ -74,7 +74,8 @@ sourceSets {
} }
jar { jar {
from (configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }) { duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from (configurations.shade.collect { it.isDirectory() ? it : zipTree(it) }) {
exclude 'META-INF/*' exclude 'META-INF/*'
exclude 'META-INF' exclude 'META-INF'
} }
@ -93,7 +94,7 @@ publishing {
version project.version version project.version
from components.java from components.java
//Removes all of the dependencies from the maven pom, prevents sub projects downloading all the libs, as we use a fat jar //Removes all of the dependencies from the maven pom, prevents sub projects downloading all the libs, as we use a fat jar
pom.withXml { pom.withXml {
asNode().remove(asNode().get('dependencies')) asNode().remove(asNode().get('dependencies'))