From 9a7d6e984973881fb73342b44e182d379131dbe8 Mon Sep 17 00:00:00 2001 From: Kai Reinhard Date: Tue, 10 Dec 2024 01:36:15 +0100 Subject: [PATCH] projectforge-application/build.gradle.kts: bootJar dependsOn jar. --- projectforge-application/build.gradle.kts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projectforge-application/build.gradle.kts b/projectforge-application/build.gradle.kts index 6964f463e0..7cafdca8d1 100644 --- a/projectforge-application/build.gradle.kts +++ b/projectforge-application/build.gradle.kts @@ -221,8 +221,13 @@ sourceSets { } val kotlinCompilerDependencyFiles = kotlinCompilerDependency.map { it.name } +tasks.named("processResources") { + dependsOn(":projectforge-webapp:npmBuild", ":projectforge-webapp:copyReactBuild") +} + tasks.named("bootJar") { dependsOn(":projectforge-webapp:webAppJar") + dependsOn(tasks.named("jar")) // Ensure the plain JAR is built before bootJar val webAppJarProvider = project(":projectforge-webapp").layout.buildDirectory.file("libs/projectforge-webapp-${project.version}.jar") from(webAppJarProvider) { into("BOOT-INF/lib") // Insert the webapp jar into the boot jar.