Skip to content

Commit a16c790

Browse files
authored
Update to Quarkus 3.31.1, JUnit 6, Testcontainers 2 and Gradle ErrorProne Plugin 5.0.0 (#11)
* update to Quarkus 3.31.1 * update to Gradle ErrorProne Plugin 5.0.0 * this has no effect on tests as this is a build time property and must be set when building before running the tests * 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 8da8b4f. * activate the JOSDK leader election also for the dev profile, so we have the same behavior as in production
1 parent ae8d283 commit a16c790

5 files changed

Lines changed: 9 additions & 14 deletions

File tree

build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ subprojects {
9292
useJUnitPlatform()
9393

9494
systemProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager")
95-
jvmArgs("--add-opens", "java.base/java.lang=ALL-UNNAMED")
9695

9796
testLogging {
9897
exceptionFormat = TestExceptionFormat.FULL

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ org.gradle.logging.level=INFO
77

88
# Quarkus
99
quarkusPluginId=io.quarkus
10-
quarkusPluginVersion=3.30.8
10+
quarkusPluginVersion=3.31.1
1111
# https://mvnrepository.com/artifact/io.quarkus.platform/quarkus-bom
1212
quarkusPlatformGroupId=io.quarkus.platform
1313
quarkusPlatformArtifactId=quarkus-bom
14-
quarkusPlatformVersion=3.30.8
14+
quarkusPlatformVersion=3.31.1
1515
systemProp.quarkus.analytics.disabled=true

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ assertj = "3.27.7"
1818
checkstyle = "13.0.0"
1919
datafaker = "2.5.3"
2020
errorProne = "2.46.0"
21-
errorPronePlugin = "4.4.0"
21+
errorPronePlugin = "5.0.0"
2222
nullAway = "0.13.1"
2323

2424
[plugins]

operator/build.gradle.kts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,15 @@ dependencies {
5757
/**
5858
* Testing
5959
*/
60-
testImplementation("io.quarkus:quarkus-junit5")
61-
testImplementation("io.quarkus:quarkus-junit5-mockito")
60+
testImplementation("io.quarkus:quarkus-junit")
61+
testImplementation("io.quarkus:quarkus-junit-mockito")
6262
testImplementation("org.awaitility:awaitility")
6363
testImplementation(libs.assertj)
6464
testImplementation(libs.datafaker)
6565
}
6666

67-
tasks.quarkusDev {
68-
// Java 24+ issue. Remove after this has been fixed.
69-
// https://github.com/quarkusio/quarkus/issues/47769#issuecomment-3148789105
70-
// https://github.com/quarkusio/quarkus/pull/49920
71-
jvmArgs = listOf("--add-opens", "java.base/java.lang=ALL-UNNAMED")
72-
}
73-
7467
tasks.quarkusAppPartsBuild {
75-
doNotTrackState("Always execute Gradle task quarkusAppPartsBuild to generate the K8s deploy manifest kubernetes.yml and to publish the Helm chart")
68+
doNotTrackState("Always execute Gradle task quarkusAppPartsBuild to generate the K8s deploy manifest kubernetes.yml, the CRDs, and to publish the Helm chart")
7669
}
7770

7871
tasks.withType<Test> {

operator/src/main/resources/application-dev.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
quarkus:
2+
operator-sdk:
3+
activate-leader-election-for-profiles:
4+
- dev
25
datasource:
36
devservices:
47
port: 5432

0 commit comments

Comments
 (0)