Skip to content

Commit

Permalink
projectforge-application/build.gradle.kts: bootJar dependsOn jar.
Browse files Browse the repository at this point in the history
  • Loading branch information
kreinhard committed Dec 10, 2024
1 parent 738634e commit 9a7d6e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions projectforge-application/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,13 @@ sourceSets {
}

val kotlinCompilerDependencyFiles = kotlinCompilerDependency.map { it.name }
tasks.named("processResources") {
dependsOn(":projectforge-webapp:npmBuild", ":projectforge-webapp:copyReactBuild")
}

tasks.named<BootJar>("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.
Expand Down

0 comments on commit 9a7d6e9

Please sign in to comment.