first attempt to fat-jar

This commit is contained in:
Mateusz Kowalczyk 2020-02-01 11:41:50 +01:00
parent e54df9b7f2
commit e80902428f
1 changed files with 12 additions and 0 deletions

View File

@ -47,4 +47,16 @@ jar {
manifest {
attributes 'Main-Class': 'dev.mateuszkowalczyk.ffm.Main'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'dev.mateuszkowalczyk.ffm.Main'
}
classifier = 'all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}