Ensure backend tasks depend on frontend build completion

This commit is contained in:
Teriuihi 2025-04-19 00:44:52 +02:00
parent 6f2a48338b
commit bbedd2257e

View File

@ -44,6 +44,10 @@ dependencies {
}
tasks.compileJava {
dependsOn(":frontend:npmBuild")
}
tasks.withType<Test> {
useJUnitPlatform()
}
@ -60,6 +64,7 @@ tasks.processResources {
tasks.register<Copy>("includeFrontend") {
description = "Copy the built frontend to the Spring Boot static resources directory"
dependsOn(":frontend:npmBuild")
from("${project.rootDir}/frontend/dist")
into(layout.buildDirectory.dir("resources/main/static"))
doNotTrackState("Cannot reliably track state in the static directory")