From 61dc6bf181bf169a00e7a26c625cc5a304de14f5 Mon Sep 17 00:00:00 2001 From: James Netherton Date: Thu, 19 Sep 2024 15:46:32 +0100 Subject: [PATCH] Upgrade Quarkus to 3.16.0.CR1 --- docs/antora.yml | 2 +- .../reference/extensions/rest-openapi.adoc | 7 ++--- .../runtime/graal/SwaggerSubstitutions.java | 27 ++++++++++++++++++- .../java/deployment/OpenApiJavaProcessor.java | 8 +++--- .../certificate-generator/pom.xml | 1 + .../MicroprofileFaultToleranceProducers.java | 2 +- pom.xml | 11 ++++---- poms/bom-test/pom.xml | 6 ----- .../src/main/generated/flattened-full-pom.xml | 12 ++++----- .../main/generated/flattened-reduced-pom.xml | 10 +++---- .../flattened-reduced-verbose-pom.xml | 10 +++---- .../maven/UpdateExtensionDocPageMojo.java | 6 +++-- 12 files changed, 62 insertions(+), 40 deletions(-) diff --git a/docs/antora.yml b/docs/antora.yml index 0dbe7a0f7da9..e3879f548541 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -36,7 +36,7 @@ asciidoc: graalvm-docs-version: jdk21 # replace ${graalvm-docs.version} mapstruct-version: 1.6.0 # replace ${mapstruct.version} min-maven-version: 3.8.2 # replace ${min-maven-version} - target-maven-version: 3.9.8 # replace ${target-maven-version} + target-maven-version: 3.9.9 # replace ${target-maven-version} # Attributes used in xrefs to other Antora components cq-camel-components: components diff --git a/docs/modules/ROOT/pages/reference/extensions/rest-openapi.adoc b/docs/modules/ROOT/pages/reference/extensions/rest-openapi.adoc index 957f609ad807..253c6ccfaf59 100644 --- a/docs/modules/ROOT/pages/reference/extensions/rest-openapi.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/rest-openapi.adoc @@ -138,7 +138,8 @@ quarkus.native.resources.includes=contract.json |icon:lock[title=Fixed at build time] [[quarkus.camel.openapi.codegen.enabled]]`link:#quarkus.camel.openapi.codegen.enabled[quarkus.camel.openapi.codegen.enabled]` -If `true`, Camel Quarkus OpenAPI code generation is run for .json files discovered from the `openapi` directory. When `false`, code generation for .json files is disabled. +If {@code true}, Camel Quarkus OpenAPI code generation is run for .json files discovered from the {@code openapi} +directory. When {@code false}, code generation for .json files is disabled. | `boolean` | `true` @@ -156,13 +157,13 @@ A comma separated list of models to generate. All models is the default. |icon:lock[title=Fixed at build time] [[quarkus.camel.openapi.codegen.use-bean-validation]]`link:#quarkus.camel.openapi.codegen.use-bean-validation[quarkus.camel.openapi.codegen.use-bean-validation]` -If `true`, use bean validation annotations in the generated model classes. +If {@code true}, use bean validation annotations in the generated model classes. | `boolean` | `false` |icon:lock[title=Fixed at build time] [[quarkus.camel.openapi.codegen.not-null-jackson]]`link:#quarkus.camel.openapi.codegen.not-null-jackson[quarkus.camel.openapi.codegen.not-null-jackson]` -If `true`, use NON_NULL Jackson annotation in the generated model classes. +If {@code true}, use NON_NULL Jackson annotation in the generated model classes. | `boolean` | `false` |=== diff --git a/extensions-support/swagger/runtime/src/main/java/org/apache/camel/quarkus/support/swagger/runtime/graal/SwaggerSubstitutions.java b/extensions-support/swagger/runtime/src/main/java/org/apache/camel/quarkus/support/swagger/runtime/graal/SwaggerSubstitutions.java index 5bfd13dc8e24..6ef5ccb5629f 100644 --- a/extensions-support/swagger/runtime/src/main/java/org/apache/camel/quarkus/support/swagger/runtime/graal/SwaggerSubstitutions.java +++ b/extensions-support/swagger/runtime/src/main/java/org/apache/camel/quarkus/support/swagger/runtime/graal/SwaggerSubstitutions.java @@ -16,15 +16,21 @@ */ package org.apache.camel.quarkus.support.swagger.runtime.graal; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.lang.reflect.Type; import java.util.Calendar; import java.util.List; +import com.fasterxml.jackson.databind.BeanDescription; +import com.fasterxml.jackson.databind.introspect.AnnotatedMember; import com.oracle.svm.core.annotate.Alias; import com.oracle.svm.core.annotate.RecomputeFieldValue; import com.oracle.svm.core.annotate.RecomputeFieldValue.Kind; import com.oracle.svm.core.annotate.Substitute; import com.oracle.svm.core.annotate.TargetClass; import io.swagger.parser.OpenAPIParser; +import io.swagger.v3.core.jackson.ModelResolver; import io.swagger.v3.parser.OpenAPIV3Parser; import io.swagger.v3.parser.core.extensions.SwaggerParserExtension; import io.swagger.v3.parser.core.models.AuthorizationValue; @@ -98,9 +104,28 @@ public SwaggerParseResult readContents(String swaggerAsString, List io.smallrye.certs smallrye-certificate-generator-junit5 + compile org.apache.camel.quarkus diff --git a/integration-tests/microprofile-fault-tolerance/src/main/java/org/apache/camel/quarkus/component/microprofile/it/faulttolerance/MicroprofileFaultToleranceProducers.java b/integration-tests/microprofile-fault-tolerance/src/main/java/org/apache/camel/quarkus/component/microprofile/it/faulttolerance/MicroprofileFaultToleranceProducers.java index ba233c18b583..f367367bf9b1 100644 --- a/integration-tests/microprofile-fault-tolerance/src/main/java/org/apache/camel/quarkus/component/microprofile/it/faulttolerance/MicroprofileFaultToleranceProducers.java +++ b/integration-tests/microprofile-fault-tolerance/src/main/java/org/apache/camel/quarkus/component/microprofile/it/faulttolerance/MicroprofileFaultToleranceProducers.java @@ -54,7 +54,7 @@ ExecutorService produceCustomBulkheadExecutorService() { @ApplicationScoped @Named("threadTimer") ThreadTimer threadTimer(@Named("threadTimerExecutor") ExecutorService executorService) { - return ThreadTimer.create(executorService); + return new ThreadTimer(executorService); } @ApplicationScoped diff --git a/pom.xml b/pom.xml index c36691e064e1..c33e29904254 100644 --- a/pom.xml +++ b/pom.xml @@ -62,7 +62,7 @@ 2.2.4 2.6.0 2.0.4 - 3.15.1 + 999-SNAPSHOT 4.0.0 2.7.1 @@ -132,7 +132,7 @@ 1.0.3 3.7.1 ${kudu-version} - 2.0.10 + 2.0.20 1.4.0 2.24.0 0.35.0 @@ -153,8 +153,8 @@ ${reactor-netty-version} 2.9.0 3.1.8 - 4.24.0 - 2.2 + 4.25.0 + 2.3 ${snakeyaml-engine-version} ${spring-version} ${spring-data-redis-version} @@ -173,7 +173,6 @@ 1.5.6-3 - 0.8.1 ${consul-client-version} ${ftpserver-version} 3.0 @@ -272,7 +271,7 @@ 3.8.2 - 3.9.8 + 3.9.9 [${min-maven-version},) diff --git a/poms/bom-test/pom.xml b/poms/bom-test/pom.xml index 645d90b4aff2..13d8cc75949f 100644 --- a/poms/bom-test/pom.xml +++ b/poms/bom-test/pom.xml @@ -80,12 +80,6 @@ quarkus-micrometer-registry-jmx ${quarkiverse-micrometer.version} - - - io.smallrye.certs - smallrye-certificate-generator-junit5 - ${smallrye-certificate-generator-junit5.version} - org.apache.camel.quarkus camel-quarkus-integration-test-support-custom-dataformat diff --git a/poms/bom/src/main/generated/flattened-full-pom.xml b/poms/bom/src/main/generated/flattened-full-pom.xml index 5ab2af9d2124..854d5ce32dba 100644 --- a/poms/bom/src/main/generated/flattened-full-pom.xml +++ b/poms/bom/src/main/generated/flattened-full-pom.xml @@ -6913,7 +6913,7 @@ io.smallrye.reactive smallrye-reactive-messaging-camel - 4.24.0 + 4.25.0 io.swagger.codegen.v3 @@ -7204,27 +7204,27 @@ org.jetbrains.kotlin kotlin-script-util - 2.0.10 + 2.0.20 org.jetbrains.kotlin kotlin-scripting-compiler-embeddable - 2.0.10 + 2.0.20 org.jetbrains.kotlin kotlin-scripting-compiler-impl-embeddable - 2.0.10 + 2.0.20 org.jetbrains.kotlin kotlin-scripting-jvm - 2.0.10 + 2.0.20 org.jetbrains.kotlin kotlin-scripting-jvm-host - 2.0.10 + 2.0.20 org.jetbrains.kotlinx diff --git a/poms/bom/src/main/generated/flattened-reduced-pom.xml b/poms/bom/src/main/generated/flattened-reduced-pom.xml index 3c882f1a1335..3cd4f1f0d104 100644 --- a/poms/bom/src/main/generated/flattened-reduced-pom.xml +++ b/poms/bom/src/main/generated/flattened-reduced-pom.xml @@ -6878,7 +6878,7 @@ io.smallrye.reactive smallrye-reactive-messaging-camel - 4.24.0 + 4.25.0 io.swagger.codegen.v3 @@ -7149,22 +7149,22 @@ org.jetbrains.kotlin kotlin-scripting-compiler-embeddable - 2.0.10 + 2.0.20 org.jetbrains.kotlin kotlin-scripting-compiler-impl-embeddable - 2.0.10 + 2.0.20 org.jetbrains.kotlin kotlin-scripting-jvm - 2.0.10 + 2.0.20 org.jetbrains.kotlin kotlin-scripting-jvm-host - 2.0.10 + 2.0.20 org.jetbrains.kotlinx diff --git a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml index 3f700ce65d1e..0ab3f3219d5a 100644 --- a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml +++ b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml @@ -6878,7 +6878,7 @@ io.smallrye.reactive smallrye-reactive-messaging-camel - 4.24.0 + 4.25.0 io.swagger.codegen.v3 @@ -7149,22 +7149,22 @@ org.jetbrains.kotlin kotlin-scripting-compiler-embeddable - 2.0.10 + 2.0.20 org.jetbrains.kotlin kotlin-scripting-compiler-impl-embeddable - 2.0.10 + 2.0.20 org.jetbrains.kotlin kotlin-scripting-jvm - 2.0.10 + 2.0.20 org.jetbrains.kotlin kotlin-scripting-jvm-host - 2.0.10 + 2.0.20 org.jetbrains.kotlinx diff --git a/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java b/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java index 0688e29b8701..881e2492443f 100644 --- a/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java +++ b/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java @@ -485,8 +485,10 @@ static List listConfigOptions(Path runtimeModuleDir, Path deployment final JavadocRepository javadocRepository = JavadocMerger.mergeJavadocElements(targetDirectories); final MergedModel mergedModel = ModelMerger.mergeModel(targetDirectories); - for (Entry> extensionConfigRootsEntry : mergedModel.getConfigRoots().entrySet()) { - for (Entry configRootEntry : extensionConfigRootsEntry.getValue().entrySet()) { + for (Entry> extensionConfigRootsEntry : mergedModel + .getConfigRoots().entrySet()) { + for (Entry configRootEntry : extensionConfigRootsEntry.getValue() + .entrySet()) { final ConfigRoot configRoot = configRootEntry.getValue(); for (AbstractConfigItem configItem : configRoot.getItems()) { if (configItem instanceof ConfigProperty) {