diff --git a/game/build.gradle.kts b/game/build.gradle.kts index 5166dc1..e73fc2e 100644 --- a/game/build.gradle.kts +++ b/game/build.gradle.kts @@ -29,8 +29,9 @@ kotlin { register("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("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