]> nmode's Git Repositories - signal-cli/commitdiff
Fix building fatJar
authorAsamK <asamk@gmx.de>
Mon, 3 Oct 2022 11:13:17 +0000 (13:13 +0200)
committerAsamK <asamk@gmx.de>
Mon, 3 Oct 2022 11:13:17 +0000 (13:13 +0200)
build.gradle.kts

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