Skip to content

Commit ea501c4

Browse files
renovate[bot]snazy
andauthored
Update Quarkus Platform and Group to v3.21.0 (#10606)
* Update Quarkus Platform and Group to v3.21.0 * adopt license-binary-dist * Update Quarkus built-time configs for dev-mode Fixes `quarkus.devservices.enabled is set to 'false' but it is build time fixed to 'true'. Did you change the property quarkus.devservices.enabled after building the application?` * Add quarkus-vault* as independent deps to enable use of non-platform Quarkus bom * (Non-platform) Quarkus requires AWSSDK `url-connection-client` as an explicit dependency * Remove `@StaticInitSafe` This is rather a workaround than a necessity. It works around [Quarkus issue 47007](quarkusio/quarkus#47007), but also another one: Mapped configs having `@StaticInitSafe` being rejected by Quarkus 3.21.0 (`SRCFG00027: Could not find a mapping for ...`) despite all properties having `@WithDefault` annotations. There is no runtime impact on removing `@StaticInitSafe` even for `@RequestScoped` beans getting those configs injected - it's always the same mapped config bean instance (same Java object). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Robert Stupp <[email protected]>
1 parent 7406a4d commit ea501c4

File tree

19 files changed

+15
-30
lines changed

19 files changed

+15
-30
lines changed

catalog/files/impl/build.gradle.kts

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ dependencies {
4141
implementation("software.amazon.awssdk:apache-client") {
4242
exclude("commons-logging", "commons-logging")
4343
}
44+
runtimeOnly("software.amazon.awssdk:url-connection-client") {
45+
exclude("commons-logging", "commons-logging")
46+
}
4447

4548
implementation(platform(libs.google.cloud.storage.bom))
4649
implementation("com.google.cloud:google-cloud-storage")

catalog/secrets/vault/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies {
2323
implementation(libs.guava)
2424

2525
implementation(enforcedPlatform(libs.quarkus.bom))
26-
implementation("io.quarkiverse.vault:quarkus-vault")
26+
implementation(libs.quarkus.vault)
2727

2828
compileOnly(project(":nessie-immutables"))
2929
annotationProcessor(project(":nessie-immutables", configuration = "processor"))

events/quarkus/src/main/java/org/projectnessie/events/quarkus/config/QuarkusEventConfig.java

-2
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@
1515
*/
1616
package org.projectnessie.events.quarkus.config;
1717

18-
import io.quarkus.runtime.annotations.StaticInitSafe;
1918
import io.smallrye.config.ConfigMapping;
2019
import io.smallrye.config.WithDefault;
2120
import io.smallrye.config.WithName;
2221
import java.time.Duration;
2322
import java.util.Map;
2423
import org.projectnessie.events.service.EventConfig;
2524

26-
@StaticInitSafe
2725
@ConfigMapping(prefix = "nessie.version.store.events")
2826
public interface QuarkusEventConfig extends EventConfig {
2927

gradle/built-uber-dists/LICENSE-BINARY-DIST

+2
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ io.prometheus:simpleclient_common
402402
io.prometheus:simpleclient_tracer_common
403403
io.prometheus:simpleclient_tracer_otel
404404
io.prometheus:simpleclient_tracer_otel_agent
405+
io.quarkiverse.amazonservices:quarkus-amazon-common-spi
405406
io.quarkiverse.amazonservices:quarkus-amazon-common
406407
io.quarkiverse.amazonservices:quarkus-amazon-dynamodb
407408
io.quarkiverse.amazonservices:quarkus-amazon-secretsmanager
@@ -467,6 +468,7 @@ io.quarkus:quarkus-smallrye-jwt-build
467468
io.quarkus:quarkus-smallrye-openapi
468469
io.quarkus:quarkus-swagger-ui
469470
io.quarkus:quarkus-tls-registry
471+
io.quarkus:quarkus-tls-registry-spi
470472
io.quarkus:quarkus-transaction-annotations
471473
io.quarkus:quarkus-vertx
472474
io.quarkus:quarkus-vertx-http

gradle/libs.versions.toml

+5-3
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ opentelemetry = "1.48.0"
2525
opentelemetryAlpha = "1.31.0-alpha"
2626
picocli = "4.7.6"
2727
protobuf = "4.30.2"
28-
quarkusPlatform = "3.19.4"
28+
quarkusPlatform = "3.21.0"
2929
quarkusPlugin = "3.21.0"
30+
quarkusVault = "4.2.1"
3031
slf4j = "2.0.17"
31-
smallryeConfig = "3.12.4"
3232
undertow = "2.3.18.Final"
3333

3434
# Backwards compatibility versions. Not referenced in this file to not let Renovate bump those versions.
@@ -130,6 +130,8 @@ quarkus-bom = { module = "io.quarkus.platform:quarkus-bom", version.ref = "quark
130130
quarkus-cassandra-bom = { module = "io.quarkus.platform:quarkus-cassandra-bom", version.ref = "quarkusPlatform" }
131131
quarkus-google-cloud-services-bom = { module = "io.quarkus.platform:quarkus-google-cloud-services-bom", version.ref = "quarkusPlatform" }
132132
quarkus-logging-sentry = { module = "io.quarkiverse.loggingsentry:quarkus-logging-sentry", version = "2.1.2" }
133+
quarkus-vault = { module = "io.quarkiverse.vault:quarkus-vault", version.ref = "quarkusVault" }
134+
quarkus-vault-deployment = { module = "io.quarkiverse.vault:quarkus-vault-deployment", version.ref = "quarkusVault" }
133135
rest-assured = { module = "io.rest-assured:rest-assured", version = "5.5.1" }
134136
rocksdb-jni = { module = "org.rocksdb:rocksdbjni", version = "9.10.0" }
135137
scala-library-v212 = { module = "org.scala-lang:scala-library", version = { strictly = "[2.12, 2.13[", prefer = "2.12.20" }}
@@ -138,7 +140,7 @@ slf4j-api = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" }
138140
slf4j-jcl-over-slf4j = { module = "org.slf4j:jcl-over-slf4j", version.ref = "slf4j" }
139141
slf4j-log4j-over-slf4j = { module = "org.slf4j:log4j-over-slf4j", version.ref = "slf4j" }
140142
smallrye-mutiny = { module = "io.smallrye.reactive:mutiny", version = "2.8.0" }
141-
smallrye-config-core = { module = "io.smallrye.config:smallrye-config-core", version.ref = "smallryeConfig" }
143+
smallrye-config-core = { module = "io.smallrye.config:smallrye-config-core", version = "3.12.4" }
142144
snappy-java = { module = "org.xerial.snappy:snappy-java", version = "1.1.10.7" }
143145
spark-sql-v33-v212 = { module = "org.apache.spark:spark-sql_2_12", version = { strictly = "[3.3, 3.4[", prefer = "3.3.4"}}
144146
spark-sql-v33-v213 = { module = "org.apache.spark:spark-sql_2_13", version = { strictly = "[3.3, 3.4[", prefer = "3.3.4"}}

servers/quarkus-common/src/main/java/org/projectnessie/quarkus/config/QuarkusBigTableConfig.java

-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package org.projectnessie.quarkus.config;
1717

1818
import com.google.api.gax.core.CredentialsProvider;
19-
import io.quarkus.runtime.annotations.StaticInitSafe;
2019
import io.smallrye.config.ConfigMapping;
2120
import io.smallrye.config.WithDefault;
2221
import java.util.Optional;
@@ -26,7 +25,6 @@
2625
* When setting {@code nessie.version.store.type=BIGTABLE} which enables Google BigTable as the
2726
* version store used by the Nessie server, the following configurations are applicable.
2827
*/
29-
@StaticInitSafe
3028
@ConfigMapping(prefix = "nessie.version.store.persist.bigtable")
3129
public interface QuarkusBigTableConfig extends BigTableClientsConfig {
3230

servers/quarkus-common/src/main/java/org/projectnessie/quarkus/config/QuarkusCassandraConfig.java

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package org.projectnessie.quarkus.config;
1717

18-
import io.quarkus.runtime.annotations.StaticInitSafe;
1918
import io.smallrye.config.ConfigMapping;
2019
import io.smallrye.config.WithDefault;
2120
import java.time.Duration;
@@ -25,7 +24,6 @@
2524
* When setting {@code nessie.version.store.type=CASSANDRA} which enables Apache Cassandra as the
2625
* version store used by the Nessie server, the following configurations are applicable.
2726
*/
28-
@StaticInitSafe
2927
@ConfigMapping(prefix = "nessie.version.store.cassandra")
3028
public interface QuarkusCassandraConfig extends Cassandra2Config {
3129
@Override

servers/quarkus-common/src/main/java/org/projectnessie/quarkus/config/QuarkusDynamoDBConfig.java

-2
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@
1515
*/
1616
package org.projectnessie.quarkus.config;
1717

18-
import io.quarkus.runtime.annotations.StaticInitSafe;
1918
import io.smallrye.config.ConfigMapping;
2019
import java.util.Optional;
2120

2221
/**
2322
* When setting {@code nessie.version.store.type=DYNAMODB} which enables DynamoDB as the version
2423
* store used by the Nessie server, the following configurations are applicable.
2524
*/
26-
@StaticInitSafe
2725
@ConfigMapping(prefix = "nessie.version.store.persist.dynamodb")
2826
public interface QuarkusDynamoDBConfig {
2927
/** Prefix for tables, default is no prefix. */

servers/quarkus-common/src/main/java/org/projectnessie/quarkus/config/QuarkusJdbcConfig.java

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package org.projectnessie.quarkus.config;
1717

18-
import io.quarkus.runtime.annotations.StaticInitSafe;
1918
import io.smallrye.config.ConfigMapping;
2019
import io.smallrye.config.WithName;
2120
import java.util.Optional;
@@ -79,7 +78,6 @@
7978
* <p>A complete set of JDBC configuration options can be found on <a
8079
* href="https://quarkus.io/guides/datasource">quarkus.io</a>.
8180
*/
82-
@StaticInitSafe
8381
@ConfigMapping(prefix = "nessie.version.store.persist.jdbc")
8482
public interface QuarkusJdbcConfig extends Jdbc2BackendBaseConfig {
8583

servers/quarkus-common/src/main/java/org/projectnessie/quarkus/config/QuarkusRocksConfig.java

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package org.projectnessie.quarkus.config;
1717

18-
import io.quarkus.runtime.annotations.StaticInitSafe;
1918
import io.smallrye.config.ConfigMapping;
2019
import io.smallrye.config.WithDefault;
2120
import io.smallrye.config.WithName;
@@ -26,7 +25,6 @@
2625
* When setting {@code nessie.version.store.type=ROCKSDB} which enables RocksDB as the version store
2726
* used by the Nessie server, the following configurations are applicable.
2827
*/
29-
@StaticInitSafe
3028
@ConfigMapping(prefix = "nessie.version.store.persist.rocks")
3129
public interface QuarkusRocksConfig extends RocksDBBackendBaseConfig {
3230

servers/quarkus-config/src/main/java/org/projectnessie/quarkus/config/QuarkusNessieAuthenticationConfig.java

-2
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@
1515
*/
1616
package org.projectnessie.quarkus.config;
1717

18-
import io.quarkus.runtime.annotations.StaticInitSafe;
1918
import io.smallrye.config.ConfigMapping;
2019
import io.smallrye.config.WithDefault;
2120
import io.smallrye.config.WithName;
2221
import java.util.Optional;
2322
import java.util.Set;
2423

2524
/** Configuration for Nessie authentication settings. */
26-
@StaticInitSafe
2725
@ConfigMapping(prefix = "nessie.server.authentication")
2826
public interface QuarkusNessieAuthenticationConfig {
2927

servers/quarkus-config/src/main/java/org/projectnessie/quarkus/config/QuarkusNessieAuthorizationConfig.java

-2
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@
1515
*/
1616
package org.projectnessie.quarkus.config;
1717

18-
import io.quarkus.runtime.annotations.StaticInitSafe;
1918
import io.smallrye.config.ConfigMapping;
2019
import io.smallrye.config.WithDefault;
2120
import io.smallrye.config.WithName;
2221
import java.util.Map;
2322

2423
/** Configuration for Nessie authorization settings. */
25-
@StaticInitSafe
2624
@ConfigMapping(prefix = "nessie.server.authorization")
2725
public interface QuarkusNessieAuthorizationConfig {
2826

servers/quarkus-config/src/main/java/org/projectnessie/quarkus/config/QuarkusServerConfig.java

-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515
*/
1616
package org.projectnessie.quarkus.config;
1717

18-
import io.quarkus.runtime.annotations.StaticInitSafe;
1918
import io.smallrye.config.ConfigMapping;
2019
import io.smallrye.config.WithDefault;
2120
import io.smallrye.config.WithName;
2221
import org.projectnessie.services.config.ServerConfig;
2322

24-
@StaticInitSafe
2523
@ConfigMapping(prefix = "nessie.server")
2624
public interface QuarkusServerConfig extends ServerConfig {
2725

servers/quarkus-config/src/main/java/org/projectnessie/quarkus/config/QuarkusStoreConfig.java

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package org.projectnessie.quarkus.config;
1717

18-
import io.quarkus.runtime.annotations.StaticInitSafe;
1918
import io.smallrye.config.ConfigMapping;
2019
import io.smallrye.config.WithConverter;
2120
import io.smallrye.config.WithDefault;
@@ -27,7 +26,6 @@
2726
import java.util.OptionalInt;
2827
import org.projectnessie.versioned.storage.common.config.StoreConfig;
2928

30-
@StaticInitSafe
3129
@ConfigMapping(prefix = QuarkusStoreConfig.NESSIE_VERSION_STORE_PERSIST)
3230
public interface QuarkusStoreConfig extends StoreConfig {
3331

servers/quarkus-config/src/main/java/org/projectnessie/quarkus/config/VersionStoreConfig.java

-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515
*/
1616
package org.projectnessie.quarkus.config;
1717

18-
import io.quarkus.runtime.annotations.StaticInitSafe;
1918
import io.smallrye.config.ConfigMapping;
2019
import io.smallrye.config.WithDefault;
2120
import io.smallrye.config.WithName;
2221

2322
/** Version store configuration. */
24-
@StaticInitSafe
2523
@ConfigMapping(prefix = "nessie.version.store")
2624
public interface VersionStoreConfig {
2725

servers/quarkus-secrets/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dependencies {
5454
implementation(enforcedPlatform(libs.quarkus.google.cloud.services.bom))
5555
implementation("io.quarkiverse.googlecloudservices:quarkus-google-cloud-secret-manager")
5656

57-
implementation("io.quarkiverse.vault:quarkus-vault")
57+
implementation(libs.quarkus.vault)
5858

5959
implementation(enforcedPlatform(libs.quarkus.azure.services.bom))
6060
implementation("io.quarkiverse.azureservices:quarkus-azure-keyvault")

servers/quarkus-server/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ dependencies {
164164

165165
testFixturesApi(platform(libs.awssdk.bom))
166166
testFixturesApi("software.amazon.awssdk:secretsmanager")
167-
testFixturesApi("io.quarkiverse.vault:quarkus-vault-deployment")
167+
testFixturesApi(libs.quarkus.vault.deployment)
168168

169169
testFixturesApi(enforcedPlatform(libs.quarkus.azure.services.bom))
170170
testFixturesApi("io.quarkiverse.azureservices:quarkus-azure-keyvault")

servers/quarkus-server/src/main/resources/application.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ quarkus.micrometer.binder.http-server.match-patterns=\
475475
/iceberg/v1/.*/views/rename=/iceberg/v1/{prefix}/views/rename, \
476476
/iceberg/v1/.*/transactions/commit=/iceberg/v1/{prefix}/transactions/commit
477477

478-
%test.quarkus.devservices.enabled=false
478+
quarkus.devservices.enabled=false
479479

480480
# Disable Micrometer JVM-Metrics for tests.
481481
#

tools/server-admin/src/main/resources/application.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ quarkus.http.test-port=0
181181
# Disable a "lot of things" that are not needed for integration testing. Disabled in an effort to get hold
182182
# of the class-loader OOM leak described in https://github.com/projectnessie/nessie/issues/8571
183183
# Many of these settings are probably unnecessary, but otoh don't hurt.
184-
%test.quarkus.devservices.enabled=false
184+
quarkus.devservices.enabled=false
185185
%test.quarkus.micrometer.enabled=false
186186
%test.quarkus.micrometer.registry-enabled-default=false
187187
%test.quarkus.mongodb.metrics.enabled=false

0 commit comments

Comments
 (0)