build: Update run-paper to 1.0.2, improve up to date checking for FileCopyTask, use version catalog in build-logic

This commit is contained in:
Jason Penilla committed 2021-06-06 17:17:13 -07:00
1 parent f28d59b5a0
commit d4bcf809c8
13 files changed
+92 -62

No files matched your search

+3 -2
View File
@@ -40,7 +40,8 @@ tasks {
classpath(velocityRun.asFileTree)
workingDir = layout.projectDirectory.dir("run").asFile
dependsOn(shadowJar)
val pluginJar = shadowJar.flatMap { it.archiveFile }
inputs.file(pluginJar)
doFirst {
if (!workingDir.exists()) {
@@ -51,7 +52,7 @@ tasks {
plugins.mkdirs()
}
shadowJar.get().archiveFile.get().asFile.copyTo(plugins.resolve("carbon.jar"), overwrite = true)
pluginJar.get().asFile.copyTo(plugins.resolve("carbon.jar"), overwrite = true)
}
}
}