Update build.gradle

This commit is contained in:
Anthony Stirling 2025-06-18 18:07:59 +01:00 committed by GitHub
parent beab989345
commit b205ba74fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -171,18 +171,9 @@ subprojects {
useJUnitPlatform() useJUnitPlatform()
} }
// Ensure all packaging tasks depend on writeVersion from root project tasks.named("processResources") {
tasks.withType(org.springframework.boot.gradle.tasks.bundling.BootJar) { dependsOn(rootProject.tasks.writeVersion)
dependsOn(rootProject.tasks.writeVersion) }
}
tasks.withType(Jar) {
dependsOn(rootProject.tasks.writeVersion)
}
tasks.withType(org.gradle.api.tasks.bundling.Zip) {
dependsOn(rootProject.tasks.writeVersion)
}
} }
tasks.withType(JavaCompile).configureEach { tasks.withType(JavaCompile).configureEach {