mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +00:00
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:
13 files changed
+92
-62
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user