Delete target web-gui before copying (#1573)

Co-authored-by: lucas lelievre <[email protected]>
This commit is contained in:
Butterscotch!andlucas lelievre authored and GitHub committed 2025-10-31 17:12:12 +01:00
1 parent e81c9c5b2d
commit 94b2309945
1 file changed
+3 -1
+3 -1
View File
@@ -29,8 +29,10 @@ java {
}
tasks.register<Copy>("copyGuiAssets") {
val target = layout.projectDirectory.dir("src/main/resources/web-gui")
delete(target)
from(rootProject.layout.projectDirectory.dir("gui/dist"))
into(layout.projectDirectory.dir("src/main/resources/web-gui"))
into(target)
if (inputs.sourceFiles.isEmpty) {
throw GradleException("You need to run \"pnpm run build\" on the gui folder first!")
}