jcechace
10/29/2018, 9:09 AMgildor
10/29/2018, 9:15 AMMarcel Kesselring
10/29/2018, 9:37 AMtasks.withType<Jar> {
manifest {
attributes["Main-Class"] = mainClassName
}
from(configurations.runtime
.filterNot { it.path.endsWith(".pom") }
.map {
if (it.isDirectory) {
it
} else {
zipTree(it)
}
}) {
exclude("META-INF/*.SF")
exclude("META-INF/*.DSA")
exclude("META-INF/*.RSA")
exclude("**/pom.xml")
}
}
gildor
10/29/2018, 9:39 AMapplication
plugin and of course allows to build fat jar and standard jar (to speed up development)Marcel Kesselring
10/29/2018, 10:08 AMgildor
10/29/2018, 10:11 AMeskatos
10/29/2018, 12:06 PMgildor
10/29/2018, 6:00 PMeskatos
10/29/2018, 6:01 PMfrom()
functioneskatos
10/29/2018, 6:02 PMfrom(provider { configurations.runtime.filterNot { .. }... })