first attempt to fat-jar
This commit is contained in:
parent
e54df9b7f2
commit
e80902428f
12
build.gradle
12
build.gradle
@ -47,4 +47,16 @@ jar {
|
|||||||
manifest {
|
manifest {
|
||||||
attributes 'Main-Class': 'dev.mateuszkowalczyk.ffm.Main'
|
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
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user