mirror of
https://github.com/littlektframework/littlekt-game-template.git
synced 2025-01-10 19:40:54 -07:00
gradle: fix packageFatJar errors
This commit is contained in:
parent
2633e275c5
commit
f71c5b753f
1 changed files with 3 additions and 2 deletions
|
@ -29,8 +29,9 @@ kotlin {
|
||||||
register<Copy>("copyResources") {
|
register<Copy>("copyResources") {
|
||||||
group = "package"
|
group = "package"
|
||||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||||
|
dependsOn(named("jvmProcessResources"))
|
||||||
from(main.output.resourcesDir)
|
from(main.output.resourcesDir)
|
||||||
destinationDir = File("${layout.buildDirectory}/publish")
|
destinationDir = File("${layout.buildDirectory.asFile.get()}/publish")
|
||||||
}
|
}
|
||||||
register<Jar>("packageFatJar") {
|
register<Jar>("packageFatJar") {
|
||||||
group = "package"
|
group = "package"
|
||||||
|
@ -41,7 +42,7 @@ kotlin {
|
||||||
manifest {
|
manifest {
|
||||||
attributes["Main-Class"] = mainClassName
|
attributes["Main-Class"] = mainClassName
|
||||||
}
|
}
|
||||||
destinationDirectory.set(File("${layout.buildDirectory}/publish/"))
|
destinationDirectory.set(File("${layout.buildDirectory.asFile.get()}/publish/"))
|
||||||
from(
|
from(
|
||||||
main.runtimeDependencyFiles.map { if (it.isDirectory) it else zipTree(it) },
|
main.runtimeDependencyFiles.map { if (it.isDirectory) it else zipTree(it) },
|
||||||
main.output.classesDirs
|
main.output.classesDirs
|
||||||
|
|
Loading…
Reference in a new issue