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/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] 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 { 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