From 62e41c8cfd299607effeedbbaf141a3d1b9e7935 Mon Sep 17 00:00:00 2001 From: Thomas Sapelza Date: Thu, 29 Jan 2026 10:05:16 +0100 Subject: [PATCH 1/5] update to Quarkus 3.31.1 --- build.gradle.kts | 1 - gradle.properties | 4 ++-- operator/build.gradle.kts | 13 +++---------- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index bf2fd10..0b6cea0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -92,7 +92,6 @@ subprojects { useJUnitPlatform() systemProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager") - jvmArgs("--add-opens", "java.base/java.lang=ALL-UNNAMED") testLogging { exceptionFormat = TestExceptionFormat.FULL diff --git a/gradle.properties b/gradle.properties index 97efcd9..10eb2c4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,9 +7,9 @@ org.gradle.logging.level=INFO # Quarkus quarkusPluginId=io.quarkus -quarkusPluginVersion=3.30.8 +quarkusPluginVersion=3.31.1 # https://mvnrepository.com/artifact/io.quarkus.platform/quarkus-bom quarkusPlatformGroupId=io.quarkus.platform quarkusPlatformArtifactId=quarkus-bom -quarkusPlatformVersion=3.30.8 +quarkusPlatformVersion=3.31.1 systemProp.quarkus.analytics.disabled=true diff --git a/operator/build.gradle.kts b/operator/build.gradle.kts index 24fa18e..4ea92ba 100644 --- a/operator/build.gradle.kts +++ b/operator/build.gradle.kts @@ -57,22 +57,15 @@ dependencies { /** * Testing */ - testImplementation("io.quarkus:quarkus-junit5") - testImplementation("io.quarkus:quarkus-junit5-mockito") + testImplementation("io.quarkus:quarkus-junit") + testImplementation("io.quarkus:quarkus-junit-mockito") testImplementation("org.awaitility:awaitility") testImplementation(libs.assertj) testImplementation(libs.datafaker) } -tasks.quarkusDev { - // Java 24+ issue. Remove after this has been fixed. - // https://github.com/quarkusio/quarkus/issues/47769#issuecomment-3148789105 - // https://github.com/quarkusio/quarkus/pull/49920 - jvmArgs = listOf("--add-opens", "java.base/java.lang=ALL-UNNAMED") -} - tasks.quarkusAppPartsBuild { - doNotTrackState("Always execute Gradle task quarkusAppPartsBuild to generate the K8s deploy manifest kubernetes.yml and to publish the Helm chart") + doNotTrackState("Always execute Gradle task quarkusAppPartsBuild to generate the K8s deploy manifest kubernetes.yml, the CRDs, and to publish the Helm chart") } tasks.withType { From b6976f819684905f20f9109197f58f5b4bb9092e Mon Sep 17 00:00:00 2001 From: Thomas Sapelza Date: Thu, 29 Jan 2026 10:05:34 +0100 Subject: [PATCH 2/5] update to Gradle ErrorProne Plugin 5.0.0 --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c18543b..f110de8 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -18,7 +18,7 @@ assertj = "3.27.7" checkstyle = "13.0.0" datafaker = "2.5.3" errorProne = "2.46.0" -errorPronePlugin = "4.4.0" +errorPronePlugin = "5.0.0" nullAway = "0.13.1" [plugins] From 8da8b4f24dfd6090f224a1863d5d94a8b1b5f524 Mon Sep 17 00:00:00 2001 From: Thomas Sapelza Date: Thu, 29 Jan 2026 10:58:49 +0100 Subject: [PATCH 3/5] this has no effect on tests as this is a build time property and must be set when building before running the tests --- operator/src/main/resources/application-test.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/operator/src/main/resources/application-test.yml b/operator/src/main/resources/application-test.yml index d37b73f..5e85157 100644 --- a/operator/src/main/resources/application-test.yml +++ b/operator/src/main/resources/application-test.yml @@ -1,7 +1,4 @@ quarkus: - operator-sdk: - activate-leader-election-for-profiles: - - test log: category: "org.jooq": From ea2295de918db0a5bd3f0941b1eec3d2d19cda3e Mon Sep 17 00:00:00 2001 From: Thomas Sapelza Date: Thu, 29 Jan 2026 11:08:52 +0100 Subject: [PATCH 4/5] Revert "this has no effect on tests as this is a build time property and must be set when building before running the tests" This reverts commit 8da8b4f24dfd6090f224a1863d5d94a8b1b5f524. --- operator/src/main/resources/application-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/operator/src/main/resources/application-test.yml b/operator/src/main/resources/application-test.yml index 5e85157..d37b73f 100644 --- a/operator/src/main/resources/application-test.yml +++ b/operator/src/main/resources/application-test.yml @@ -1,4 +1,7 @@ quarkus: + operator-sdk: + activate-leader-election-for-profiles: + - test log: category: "org.jooq": From f4efd8ac1a0543ed2dfe648499356393c92da8ed Mon Sep 17 00:00:00 2001 From: Thomas Sapelza Date: Thu, 29 Jan 2026 11:11:41 +0100 Subject: [PATCH 5/5] activate the JOSDK leader election also for the dev profile, so we have the same behavior as in production --- operator/src/main/resources/application-dev.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/operator/src/main/resources/application-dev.yml b/operator/src/main/resources/application-dev.yml index 96e49bc..12f8718 100644 --- a/operator/src/main/resources/application-dev.yml +++ b/operator/src/main/resources/application-dev.yml @@ -1,4 +1,7 @@ quarkus: + operator-sdk: + activate-leader-election-for-profiles: + - dev datasource: devservices: port: 5432