build: publish bom/catalog on release

This commit is contained in:
Johannes Frohnmeyer 2024-04-25 09:15:13 +02:00
parent a33b27e57d
commit 1109f9e610
Signed by: Johannes
GPG Key ID: E76429612C2929F4
2 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import io.gitlab.jfronny.scripts.deployDebug
import io.gitlab.jfronny.scripts.deployRelease
plugins {
`java-platform`
@ -14,6 +15,7 @@ publishing {
}
tasks.publish { dependsOn(tasks.build) }
tasks.deployDebug.dependsOn(tasks.publish)
tasks.deployRelease.dependsOn(tasks.deployDebug)
tasks.withType(GenerateModuleMetadata::class) {
enabled = true

View File

@ -1,4 +1,5 @@
import io.gitlab.jfronny.scripts.deployDebug
import io.gitlab.jfronny.scripts.deployRelease
plugins {
`version-catalog`
@ -14,6 +15,7 @@ publishing {
}
tasks.publish { dependsOn(tasks.build) }
tasks.deployDebug.dependsOn(tasks.publish)
tasks.deployRelease.dependsOn(tasks.deployDebug)
tasks.withType(GenerateModuleMetadata::class) {
enabled = true