Delete target web-gui before copying (#1573)

Co-authored-by: lucas lelievre <loucass003@gmail.com>
This commit is contained in:
Butterscotch!
2025-10-31 12:12:12 -04:00
committed by GitHub
parent e81c9c5b2d
commit 94b2309945

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!")
}