Skip to content

Commit 8caa426

Browse files
authored
Fix: (build) Defer shadowJar output access to fix exclusive lock issue (#4805)
1 parent fce5566 commit 8caa426

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build.gradle.kts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,10 @@ tasks {
231231
register<RunServer>("runServer-$it") {
232232
dependsOn(getByName("cacheLatestFaweArtifact"))
233233
minecraftVersion(it)
234-
pluginJars(*project(":plotsquared-bukkit").getTasksByName("shadowJar", false)
235-
.map { task -> (task as Jar).archiveFile }
236-
.toTypedArray())
234+
pluginJars(project.files(
235+
project(":plotsquared-bukkit").tasks.named<Jar>("shadowJar")
236+
.map { it.archiveFile }
237+
))
237238
jvmArgs("-DPaper.IgnoreJavaVersion=true", "-Dcom.mojang.eula.agree=true")
238239
downloadPlugins {
239240
url("https://ci.athion.net/job/FastAsyncWorldEdit/lastSuccessfulBuild/artifact/artifacts/${project.ext["faweArtifact"]}")

0 commit comments

Comments
 (0)