Skip to content

Commit

Permalink
chore: op-monitor gradle update
Browse files Browse the repository at this point in the history
Refs: XRDDEV-2829
  • Loading branch information
justasnortal committed Feb 20, 2025
1 parent e511dc7 commit dd2a962
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions src/service/op-monitor/op-monitor-application/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,39 +1,22 @@
plugins {
id("xroad.java-conventions")
alias(libs.plugins.quarkus)
id("xroad.quarkus-application-conventions")
}

val buildType: String = project.findProperty("buildType")?.toString() ?: "native"

quarkus {
quarkusBuildProperties.putAll(
buildMap {
// Common properties
put("quarkus.package.output-directory", "libs")
put("quarkus.package.output-name", "op-monitor-daemon-1.0")

when (buildType) {
"native" -> {
put("quarkus.package.jar.type", "uber-jar")
put("quarkus.package.jar.add-runner-suffix", "false")
}

"containerized" -> {
put("quarkus.container-image.build", "true")
put("quarkus.container-image.group", "niis")
put("quarkus.container-image.name", "xroad-op-monitor")
put("quarkus.container-image.tag", "latest")
}

else -> error("Unsupported buildType: $buildType. Use 'native' or 'containerized'")
}
}
)
}

tasks {
named<JavaCompile>("compileJava") {
dependsOn("compileQuarkusGeneratedSourcesJava")
jib {
to {
image = "${project.property("xroadImageRegistry")}/ss-op-monitor"
tags = setOf("latest")
}
}

Expand All @@ -49,7 +32,3 @@ dependencies {
tasks.jar {
enabled = false
}

tasks.test {
systemProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager")
}

0 comments on commit dd2a962

Please sign in to comment.