Added fat jar generation
This commit is contained in:
parent
602b45dd21
commit
16c0c39906
1 changed files with 22 additions and 0 deletions
|
@ -53,4 +53,26 @@ compose.desktop {
|
|||
packageVersion = "1.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
task("fatJar", type = Jar::class) {
|
||||
archiveBaseName.set("${project.name}-fat")
|
||||
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
|
||||
manifest {
|
||||
attributes["Implementation-Title"] = "Gitnuro"
|
||||
attributes["Implementation-Version"] = projectVersion
|
||||
attributes["Main-Class"] = "MainKt"
|
||||
}
|
||||
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }) {
|
||||
exclude(
|
||||
"META-INF/MANIFEST.MF",
|
||||
"META-INF/*.SF",
|
||||
"META-INF/*.DSA",
|
||||
"META-INF/*.RSA",
|
||||
)
|
||||
}
|
||||
with(tasks.jar.get() as CopySpec)
|
||||
}
|
Loading…
Reference in a new issue