Fix building fatJar

This commit is contained in:
AsamK 2022-10-03 13:13:17 +02:00
parent c1004fb4f8
commit 6fbbf38a84

View file

@ -76,8 +76,10 @@ task("fatJar", type = Jar::class) {
"META-INF/*.RSA", "META-INF/*.RSA",
"META-INF/NOTICE", "META-INF/NOTICE",
"META-INF/LICENSE", "META-INF/LICENSE",
"META-INF/INDEX.LIST",
"**/module-info.class" "**/module-info.class"
) )
duplicatesStrategy = DuplicatesStrategy.WARN
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }) from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
with(tasks.jar.get() as CopySpec) with(tasks.jar.get())
} }