mirror of
https://github.com/littlektframework/littlekt-game-template.git
synced 2025-01-10 11:30:53 -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") {
|
||||
group = "package"
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
dependsOn(named("jvmProcessResources"))
|
||||
from(main.output.resourcesDir)
|
||||
destinationDir = File("${layout.buildDirectory}/publish")
|
||||
destinationDir = File("${layout.buildDirectory.asFile.get()}/publish")
|
||||
}
|
||||
register<Jar>("packageFatJar") {
|
||||
group = "package"
|
||||
|
@ -41,7 +42,7 @@ kotlin {
|
|||
manifest {
|
||||
attributes["Main-Class"] = mainClassName
|
||||
}
|
||||
destinationDirectory.set(File("${layout.buildDirectory}/publish/"))
|
||||
destinationDirectory.set(File("${layout.buildDirectory.asFile.get()}/publish/"))
|
||||
from(
|
||||
main.runtimeDependencyFiles.map { if (it.isDirectory) it else zipTree(it) },
|
||||
main.output.classesDirs
|
||||
|
|
Loading…
Reference in a new issue