Demo: include all dependencies in jar

This commit is contained in:
Karl Tauber
2019-09-07 19:31:56 +02:00
parent 38acaeae36
commit ada3cda7cb

View File

@@ -35,3 +35,16 @@ java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks {
jar {
manifest {
attributes( "Main-Class" to "com.formdev.flatlaf.demo.FlatLafDemo" )
}
// include all dependencies in jar
from( {
configurations.runtimeClasspath.get().filter { it.name.endsWith( "jar" ) }.map { zipTree( it ) }
} )
}
}