[camel-quarkus] 01/03: Upgrade Quarkus to 2.12.0.CR1
This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch quarkus-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git commit cde05a5dbf33e4803bd74ce18f4b7fd94911f86a Author: James Netherton AuthorDate: Thu Jul 21 17:51:56 2022 +0100 Upgrade Quarkus to 2.12.0.CR1 --- docs/antora.yml | 6 +++--- integration-tests/js-dsl/pom.xml | 1 - pom.xml | 6 +++--- poms/bom/src/main/generated/flattened-full-pom.xml| 4 ++-- poms/bom/src/main/generated/flattened-reduced-pom.xml | 2 +- poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml | 2 +- 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/docs/antora.yml b/docs/antora.yml index 088d2f681f..eff957b106 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -31,9 +31,9 @@ asciidoc: target-maven-version: 3.8.6 # replace ${target-maven-version} camel-version: 3.18.0 # replace ${camel.version} camel-docs-version: 3.18.x # replace ${camel.docs.components.version} -quarkus-version: 2.11.1.Final # replace ${quarkus.version} -graalvm-version: 22.1.0 # replace ${graalvm.version} -graalvm-docs-version: 22.1 +quarkus-version: 999-SNAPSHOT # replace ${quarkus.version} +graalvm-version: 22.2.0 # replace ${graalvm.version} +graalvm-docs-version: 22.2 # attributes used in xrefs to other Antora components cq-camel-components: 3.18.x@components # replace ${camel.docs.components.xref} quarkus-examples-version: latest diff --git a/integration-tests/js-dsl/pom.xml b/integration-tests/js-dsl/pom.xml index fb162ae218..7ba331016d 100644 --- a/integration-tests/js-dsl/pom.xml +++ b/integration-tests/js-dsl/pom.xml @@ -84,7 +84,6 @@ native - --language:js diff --git a/pom.xml b/pom.xml index 53e19bae34..75680e7b47 100644 --- a/pom.xml +++ b/pom.xml @@ -57,7 +57,7 @@ 2.9.1 1.0.4 1.0.3 -2.11.1.Final +999-SNAPSHOT 3.0.0 0.36.0 @@ -86,8 +86,8 @@ 0.6.2 1.111 1.7.0 -22.1.0 -1.47.0 +22.2.0 +1.48.1 ${hapi-version} ${hapi-fhir-version} ${hbase-version} diff --git a/poms/bom/src/main/generated/flattened-full-pom.xml b/poms/bom/src/main/generated/flattened-full-pom.xml index 1bb8457715..3d01b2c3ae 100644 --- a/poms/bom/src/main/generated/flattened-full-pom.xml +++ b/poms/bom/src/main/generated/flattened-full-pom.xml @@ -10042,12 +10042,12 @@ org.graalvm.js js -22.1.0 +22.2.0 org.graalvm.js js-scriptengine -22.1.0 +22.2.0 org.influxdb diff --git a/poms/bom/src/main/generated/flattened-reduced-pom.xml b/poms/bom/src/main/generated/flattened-reduced-pom.xml index 61729770ca..5166d22851 100644 --- a/poms/bom/src/main/generated/flattened-reduced-pom.xml +++ b/poms/bom/src/main/generated/flattened-reduced-pom.xml @@ -10037,7 +10037,7 @@ org.graalvm.js js -22.1.0 +22.2.0 org.influxdb 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 1b51d3b15b..846e67102c 100644 --- a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml +++ b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml @@ -10037,7 +10037,7 @@ org.graalvm.js js -22.1.0 +22.2.0 org.influxdb
[camel-quarkus] 01/03: Upgrade Quarkus to 2.12.0.CR1
This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch quarkus-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git commit 7bbc200e5ec7b77b7c2de1ba3883b25c51f3b408 Author: James Netherton AuthorDate: Thu Jul 21 17:51:56 2022 +0100 Upgrade Quarkus to 2.12.0.CR1 --- docs/antora.yml | 6 +++--- .../xstream/deployment/XStreamSupportProcessor.java | 16 +++- .../component/influxdb/deployment/InfluxdbProcessor.java | 9 + .../apache/camel/quarkus/component/grpc/it/GrpcTest.java | 7 +-- integration-tests/js-dsl/pom.xml | 1 - integration-tests/kudu/pom.xml | 4 +++- integration-tests/xstream/pom.xml| 4 pom.xml | 6 +++--- poms/bom/src/main/generated/flattened-full-pom.xml | 4 ++-- poms/bom/src/main/generated/flattened-reduced-pom.xml| 2 +- .../src/main/generated/flattened-reduced-verbose-pom.xml | 2 +- 11 files changed, 38 insertions(+), 23 deletions(-) diff --git a/docs/antora.yml b/docs/antora.yml index 088d2f681f..eff957b106 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -31,9 +31,9 @@ asciidoc: target-maven-version: 3.8.6 # replace ${target-maven-version} camel-version: 3.18.0 # replace ${camel.version} camel-docs-version: 3.18.x # replace ${camel.docs.components.version} -quarkus-version: 2.11.1.Final # replace ${quarkus.version} -graalvm-version: 22.1.0 # replace ${graalvm.version} -graalvm-docs-version: 22.1 +quarkus-version: 999-SNAPSHOT # replace ${quarkus.version} +graalvm-version: 22.2.0 # replace ${graalvm.version} +graalvm-docs-version: 22.2 # attributes used in xrefs to other Antora components cq-camel-components: 3.18.x@components # replace ${camel.docs.components.xref} quarkus-examples-version: latest diff --git a/extensions-support/xstream/deployment/src/main/java/org/apache/camel/quarkus/support/xstream/deployment/XStreamSupportProcessor.java b/extensions-support/xstream/deployment/src/main/java/org/apache/camel/quarkus/support/xstream/deployment/XStreamSupportProcessor.java index ae0a5151db..eae9f6afec 100644 --- a/extensions-support/xstream/deployment/src/main/java/org/apache/camel/quarkus/support/xstream/deployment/XStreamSupportProcessor.java +++ b/extensions-support/xstream/deployment/src/main/java/org/apache/camel/quarkus/support/xstream/deployment/XStreamSupportProcessor.java @@ -27,8 +27,10 @@ import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.AdditionalApplicationArchiveMarkerBuildItem; import io.quarkus.deployment.builditem.CombinedIndexBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; +import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; +import org.jboss.jandex.IndexView; public class XStreamSupportProcessor { @@ -45,13 +47,14 @@ public class XStreamSupportProcessor { } @BuildStep -void process(CombinedIndexBuildItem indexBuildItem, -BuildProducer reflectiveClassBuildItemBuildProducer) { +void process( +CombinedIndexBuildItem indexBuildItem, +BuildProducer reflectiveClassBuildItemBuildProducer, +BuildProducer runtimeInitializedClass) { for (String className : INTERFACES_TO_REGISTER) { -for (ClassInfo i : indexBuildItem.getIndex().getAllKnownImplementors(DotName.createSimple(className))) { -String name = i.name().toString(); - +for (ClassInfo classInfo : indexBuildItem.getIndex().getAllKnownImplementors(DotName.createSimple(className))) { +String name = classInfo.name().toString(); if (!EXCLUDED_CLASSES.contains(name)) { reflectiveClassBuildItemBuildProducer.produce(new ReflectiveClassBuildItem(false, false, name)); } @@ -240,5 +243,8 @@ public class XStreamSupportProcessor { reflectiveClassBuildItemBuildProducer.produce(new ReflectiveClassBuildItem(true, false, "com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder")); + +runtimeInitializedClass.produce(new RuntimeInitializedClassBuildItem( + "com.thoughtworks.xstream.converters.extended.DynamicProxyConverter$Reflections")); } } diff --git a/extensions/influxdb/deployment/src/main/java/org/apache/camel/quarkus/component/influxdb/deployment/InfluxdbProcessor.java b/extensions/influxdb/deployment/src/main/java/org/apache/camel/quarkus/component/influxdb/deployment/InfluxdbProcessor.java index 8df98a7733..42cfd6667d 100644 --- a/extensions/influxdb/deployment/src/main/java/org/apache/camel/quarkus/component/influxdb/deployment/I
[camel-quarkus] 01/03: Upgrade Quarkus to 2.12.0.CR1
This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch quarkus-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git commit 1c0d6d5ab49386aed659e199f2b0e9a7d175e90b Author: James Netherton AuthorDate: Thu Jul 21 17:51:56 2022 +0100 Upgrade Quarkus to 2.12.0.CR1 --- docs/antora.yml | 6 +++--- .../xstream/deployment/XStreamSupportProcessor.java | 16 +++- .../component/influxdb/deployment/InfluxdbProcessor.java | 9 + .../apache/camel/quarkus/component/grpc/it/GrpcTest.java | 7 +-- integration-tests/js-dsl/pom.xml | 1 - integration-tests/kudu/pom.xml | 4 +++- integration-tests/xstream/pom.xml| 4 pom.xml | 8 poms/bom/src/main/generated/flattened-full-pom.xml | 10 +- poms/bom/src/main/generated/flattened-reduced-pom.xml| 8 .../src/main/generated/flattened-reduced-verbose-pom.xml | 8 11 files changed, 48 insertions(+), 33 deletions(-) diff --git a/docs/antora.yml b/docs/antora.yml index 088d2f681f..eff957b106 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -31,9 +31,9 @@ asciidoc: target-maven-version: 3.8.6 # replace ${target-maven-version} camel-version: 3.18.0 # replace ${camel.version} camel-docs-version: 3.18.x # replace ${camel.docs.components.version} -quarkus-version: 2.11.1.Final # replace ${quarkus.version} -graalvm-version: 22.1.0 # replace ${graalvm.version} -graalvm-docs-version: 22.1 +quarkus-version: 999-SNAPSHOT # replace ${quarkus.version} +graalvm-version: 22.2.0 # replace ${graalvm.version} +graalvm-docs-version: 22.2 # attributes used in xrefs to other Antora components cq-camel-components: 3.18.x@components # replace ${camel.docs.components.xref} quarkus-examples-version: latest diff --git a/extensions-support/xstream/deployment/src/main/java/org/apache/camel/quarkus/support/xstream/deployment/XStreamSupportProcessor.java b/extensions-support/xstream/deployment/src/main/java/org/apache/camel/quarkus/support/xstream/deployment/XStreamSupportProcessor.java index ae0a5151db..eae9f6afec 100644 --- a/extensions-support/xstream/deployment/src/main/java/org/apache/camel/quarkus/support/xstream/deployment/XStreamSupportProcessor.java +++ b/extensions-support/xstream/deployment/src/main/java/org/apache/camel/quarkus/support/xstream/deployment/XStreamSupportProcessor.java @@ -27,8 +27,10 @@ import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.AdditionalApplicationArchiveMarkerBuildItem; import io.quarkus.deployment.builditem.CombinedIndexBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; +import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; +import org.jboss.jandex.IndexView; public class XStreamSupportProcessor { @@ -45,13 +47,14 @@ public class XStreamSupportProcessor { } @BuildStep -void process(CombinedIndexBuildItem indexBuildItem, -BuildProducer reflectiveClassBuildItemBuildProducer) { +void process( +CombinedIndexBuildItem indexBuildItem, +BuildProducer reflectiveClassBuildItemBuildProducer, +BuildProducer runtimeInitializedClass) { for (String className : INTERFACES_TO_REGISTER) { -for (ClassInfo i : indexBuildItem.getIndex().getAllKnownImplementors(DotName.createSimple(className))) { -String name = i.name().toString(); - +for (ClassInfo classInfo : indexBuildItem.getIndex().getAllKnownImplementors(DotName.createSimple(className))) { +String name = classInfo.name().toString(); if (!EXCLUDED_CLASSES.contains(name)) { reflectiveClassBuildItemBuildProducer.produce(new ReflectiveClassBuildItem(false, false, name)); } @@ -240,5 +243,8 @@ public class XStreamSupportProcessor { reflectiveClassBuildItemBuildProducer.produce(new ReflectiveClassBuildItem(true, false, "com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder")); + +runtimeInitializedClass.produce(new RuntimeInitializedClassBuildItem( + "com.thoughtworks.xstream.converters.extended.DynamicProxyConverter$Reflections")); } } diff --git a/extensions/influxdb/deployment/src/main/java/org/apache/camel/quarkus/component/influxdb/deployment/InfluxdbProcessor.java b/extensions/influxdb/deployment/src/main/java/org/apache/camel/quarkus/component/influxdb/deployment/InfluxdbProcessor.java index 8df98a7733..42cfd6667d 100644 --- a/extensions/influxdb/deployment/src/main/java/org/apache/camel/quarkus/component/i
[camel-quarkus] 01/03: Upgrade Quarkus to 2.12.0.CR1
This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch quarkus-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git commit 42af5b3e40ed99fde2f5dc145078ad638224cfb2 Author: James Netherton AuthorDate: Thu Jul 21 17:51:56 2022 +0100 Upgrade Quarkus to 2.12.0.CR1 --- docs/antora.yml| 6 +- extensions-support/azure-core/runtime/pom.xml | 10 +++ ...AbstractClientApplicationBaseSubstitutions.java | 72 ++ .../deployment/XStreamSupportProcessor.java| 16 +++-- .../influxdb/deployment/InfluxdbProcessor.java | 9 +-- .../camel/quarkus/component/grpc/it/GrpcTest.java | 7 ++- integration-tests/js-dsl/pom.xml | 1 - integration-tests/kudu/pom.xml | 4 +- integration-tests/xstream/pom.xml | 4 ++ pom.xml| 8 +-- poms/bom/src/main/generated/flattened-full-pom.xml | 10 +-- .../src/main/generated/flattened-reduced-pom.xml | 8 +-- .../generated/flattened-reduced-verbose-pom.xml| 8 +-- .../apache/camel/quarkus/test/CallbackUtil.java| 6 ++ 14 files changed, 136 insertions(+), 33 deletions(-) diff --git a/docs/antora.yml b/docs/antora.yml index c2e1c72d0d..33197c8d7b 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -31,9 +31,9 @@ asciidoc: target-maven-version: 3.8.6 # replace ${target-maven-version} camel-version: 3.18.1 # replace ${camel.version} camel-docs-version: 3.18.x # replace ${camel.docs.components.version} -quarkus-version: 2.11.1.Final # replace ${quarkus.version} -graalvm-version: 22.1.0 # replace ${graalvm.version} -graalvm-docs-version: 22.1 +quarkus-version: 999-SNAPSHOT # replace ${quarkus.version} +graalvm-version: 22.2.0 # replace ${graalvm.version} +graalvm-docs-version: 22.2 # attributes used in xrefs to other Antora components cq-camel-components: 3.18.x@components # replace ${camel.docs.components.xref} quarkus-examples-version: latest diff --git a/extensions-support/azure-core/runtime/pom.xml b/extensions-support/azure-core/runtime/pom.xml index e08930acb6..95845baeac 100644 --- a/extensions-support/azure-core/runtime/pom.xml +++ b/extensions-support/azure-core/runtime/pom.xml @@ -57,6 +57,16 @@ + +com.microsoft.azure +msal4j +provided + + +org.graalvm.nativeimage +svm +provided + diff --git a/extensions-support/azure-core/runtime/src/main/java/com/microsoft/aad/msal4j/AbstractClientApplicationBaseSubstitutions.java b/extensions-support/azure-core/runtime/src/main/java/com/microsoft/aad/msal4j/AbstractClientApplicationBaseSubstitutions.java new file mode 100644 index 00..4169016993 --- /dev/null +++ b/extensions-support/azure-core/runtime/src/main/java/com/microsoft/aad/msal4j/AbstractClientApplicationBaseSubstitutions.java @@ -0,0 +1,72 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.microsoft.aad.msal4j; + +import java.util.function.BooleanSupplier; + +import com.oracle.svm.core.annotate.Substitute; +import com.oracle.svm.core.annotate.TargetClass; + +@TargetClass(className = "com.microsoft.aad.msal4j.AbstractClientApplicationBase", onlyWith = AbstractClientApplicationBaseSubstitutions.Msal4jIsPresent.class) +public final class AbstractClientApplicationBaseSubstitutions { + +/** + * Cuts out instantiation of AcquireTokenByInteractiveFlowSupplier which leads to references of classes + * in package com.sun.net.httpserver. Since GraalVM 2.22.0, this package is not on the module path by default. + * + * An additional option is required for native-image in order to compile the application successfully + * -J--add-modules=jdk.httpserver. + * + * Given that interactive authentication is of little value in a production application (since in this case it requires + * the + * launching of a web browser and some human intervention to examine the resulting web page), it should be safe to
[camel-quarkus] 01/03: Upgrade Quarkus to 2.12.0.CR1
This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch quarkus-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git commit c36ef9285c4b17f3cea35e172c3921e52c5f99be Author: James Netherton AuthorDate: Thu Jul 21 17:51:56 2022 +0100 Upgrade Quarkus to 2.12.0.CR1 --- docs/antora.yml| 6 +- extensions-support/azure-core/runtime/pom.xml | 10 +++ ...AbstractClientApplicationBaseSubstitutions.java | 72 ++ .../deployment/XStreamSupportProcessor.java| 15 +++-- .../influxdb/deployment/InfluxdbProcessor.java | 9 +-- .../camel/quarkus/component/grpc/it/GrpcTest.java | 7 ++- integration-tests/js-dsl/pom.xml | 1 - integration-tests/kudu/pom.xml | 4 +- integration-tests/xstream/pom.xml | 4 ++ pom.xml| 8 +-- poms/bom/src/main/generated/flattened-full-pom.xml | 10 +-- .../src/main/generated/flattened-reduced-pom.xml | 8 +-- .../generated/flattened-reduced-verbose-pom.xml| 8 +-- .../apache/camel/quarkus/test/CallbackUtil.java| 6 ++ 14 files changed, 135 insertions(+), 33 deletions(-) diff --git a/docs/antora.yml b/docs/antora.yml index c2e1c72d0d..33197c8d7b 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -31,9 +31,9 @@ asciidoc: target-maven-version: 3.8.6 # replace ${target-maven-version} camel-version: 3.18.1 # replace ${camel.version} camel-docs-version: 3.18.x # replace ${camel.docs.components.version} -quarkus-version: 2.11.1.Final # replace ${quarkus.version} -graalvm-version: 22.1.0 # replace ${graalvm.version} -graalvm-docs-version: 22.1 +quarkus-version: 999-SNAPSHOT # replace ${quarkus.version} +graalvm-version: 22.2.0 # replace ${graalvm.version} +graalvm-docs-version: 22.2 # attributes used in xrefs to other Antora components cq-camel-components: 3.18.x@components # replace ${camel.docs.components.xref} quarkus-examples-version: latest diff --git a/extensions-support/azure-core/runtime/pom.xml b/extensions-support/azure-core/runtime/pom.xml index e08930acb6..95845baeac 100644 --- a/extensions-support/azure-core/runtime/pom.xml +++ b/extensions-support/azure-core/runtime/pom.xml @@ -57,6 +57,16 @@ + +com.microsoft.azure +msal4j +provided + + +org.graalvm.nativeimage +svm +provided + diff --git a/extensions-support/azure-core/runtime/src/main/java/com/microsoft/aad/msal4j/AbstractClientApplicationBaseSubstitutions.java b/extensions-support/azure-core/runtime/src/main/java/com/microsoft/aad/msal4j/AbstractClientApplicationBaseSubstitutions.java new file mode 100644 index 00..4169016993 --- /dev/null +++ b/extensions-support/azure-core/runtime/src/main/java/com/microsoft/aad/msal4j/AbstractClientApplicationBaseSubstitutions.java @@ -0,0 +1,72 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.microsoft.aad.msal4j; + +import java.util.function.BooleanSupplier; + +import com.oracle.svm.core.annotate.Substitute; +import com.oracle.svm.core.annotate.TargetClass; + +@TargetClass(className = "com.microsoft.aad.msal4j.AbstractClientApplicationBase", onlyWith = AbstractClientApplicationBaseSubstitutions.Msal4jIsPresent.class) +public final class AbstractClientApplicationBaseSubstitutions { + +/** + * Cuts out instantiation of AcquireTokenByInteractiveFlowSupplier which leads to references of classes + * in package com.sun.net.httpserver. Since GraalVM 2.22.0, this package is not on the module path by default. + * + * An additional option is required for native-image in order to compile the application successfully + * -J--add-modules=jdk.httpserver. + * + * Given that interactive authentication is of little value in a production application (since in this case it requires + * the + * launching of a web browser and some human intervention to examine the resulting web page), it should be safe to