summaryrefslogtreecommitdiff
path: root/sw-server/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'sw-server/build.gradle.kts')
-rw-r--r--sw-server/build.gradle.kts12
1 files changed, 7 insertions, 5 deletions
diff --git a/sw-server/build.gradle.kts b/sw-server/build.gradle.kts
index 66e70dbb..0d5612c1 100644
--- a/sw-server/build.gradle.kts
+++ b/sw-server/build.gradle.kts
@@ -36,12 +36,14 @@ dependencies {
testImplementation("com.fasterxml.jackson.module:jackson-module-kotlin")
}
-// packages the frontend app within the jar
-tasks.bootJar {
- from("../sw-ui/build/processedResources/Js/main") {
+tasks.processResources {
+ // package the frontend app within the jar as static
+ val frontendBuildDir = project(":sw-ui").buildDir
+ val frontendDist = frontendBuildDir.toPath().resolve("distributions")
+ from(frontendDist) {
+ include("**/*")
into("static")
}
}
-
// make sure we build the frontend before creating the jar
-tasks.bootJar.get().dependsOn(":sw-ui:assemble")
+tasks.processResources.get().dependsOn(":sw-ui:assemble")
bgstack15