Ensure backend tasks depend on frontend build completion
This commit is contained in:
parent
6f2a48338b
commit
bbedd2257e
|
|
@ -44,6 +44,10 @@ dependencies {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.compileJava {
|
||||||
|
dependsOn(":frontend:npmBuild")
|
||||||
|
}
|
||||||
|
|
||||||
tasks.withType<Test> {
|
tasks.withType<Test> {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
@ -60,6 +64,7 @@ tasks.processResources {
|
||||||
|
|
||||||
tasks.register<Copy>("includeFrontend") {
|
tasks.register<Copy>("includeFrontend") {
|
||||||
description = "Copy the built frontend to the Spring Boot static resources directory"
|
description = "Copy the built frontend to the Spring Boot static resources directory"
|
||||||
|
dependsOn(":frontend:npmBuild")
|
||||||
from("${project.rootDir}/frontend/dist")
|
from("${project.rootDir}/frontend/dist")
|
||||||
into(layout.buildDirectory.dir("resources/main/static"))
|
into(layout.buildDirectory.dir("resources/main/static"))
|
||||||
doNotTrackState("Cannot reliably track state in the static directory")
|
doNotTrackState("Cannot reliably track state in the static directory")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user