This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push: new 418d93d Do not use io.quarkus...FeatureBuildItem feature constants new f1aa1b5 Merge pull request #50 from ppalaga/190709-migrate-constants 418d93d is described below commit 418d93d8a98d6e83472cb7fe4be363ec786232b0 Author: Peter Palaga <ppal...@redhat.com> AuthorDate: Tue Jul 9 12:12:23 2019 +0200 Do not use io.quarkus...FeatureBuildItem feature constants Those constants will be removed from Quarkus together with Camel extensions --- .../quarkus/component/aws/s3/deployment/CamelAwsS3Processor.java | 4 +++- .../quarkus/component/aws/sns/deployment/CamelAwsSNSProcessor.java | 4 +++- .../quarkus/component/aws/sqs/deployment/CamelAwsSQSProcessor.java | 4 +++- .../java/org/apache/camel/quarkus/core/deployment/CamelProcessor.java | 4 +++- .../component/infinispan/deployment/CamelInfinispanProcessor.java | 4 +++- .../camel/quarkus/component/jdbc/deployment/CamelJdbcProcessor.java | 4 +++- .../component/netty4http/deployment/CamelNetty4HTTPProcessor.java | 4 +++- .../component/salesforce/deployment/CamelSalesforceProcessor.java | 4 +++- .../quarkus/component/servlet/deployment/CamelServletProcessor.java | 3 ++- 9 files changed, 26 insertions(+), 9 deletions(-) diff --git a/extensions/aws-s3/deployment/src/main/java/org/apache/camel/quarkus/component/aws/s3/deployment/CamelAwsS3Processor.java b/extensions/aws-s3/deployment/src/main/java/org/apache/camel/quarkus/component/aws/s3/deployment/CamelAwsS3Processor.java index da17505..3f16539 100644 --- a/extensions/aws-s3/deployment/src/main/java/org/apache/camel/quarkus/component/aws/s3/deployment/CamelAwsS3Processor.java +++ b/extensions/aws-s3/deployment/src/main/java/org/apache/camel/quarkus/component/aws/s3/deployment/CamelAwsS3Processor.java @@ -53,9 +53,11 @@ class CamelAwsS3Processor { public static final String AWS_S3_APPLICATION_ARCHIVE_MARKERS = "com/amazonaws"; + private static final String FEATURE = "camel-aws-s3"; + @BuildStep FeatureBuildItem feature() { - return new FeatureBuildItem(FeatureBuildItem.CAMEL_AWS_S3); + return new FeatureBuildItem(FEATURE); } @BuildStep diff --git a/extensions/aws-sns/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sns/deployment/CamelAwsSNSProcessor.java b/extensions/aws-sns/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sns/deployment/CamelAwsSNSProcessor.java index 1234cbc..77063eb 100644 --- a/extensions/aws-sns/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sns/deployment/CamelAwsSNSProcessor.java +++ b/extensions/aws-sns/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sns/deployment/CamelAwsSNSProcessor.java @@ -51,9 +51,11 @@ class CamelAwsSNSProcessor { public static final String AWS_SNS_APPLICATION_ARCHIVE_MARKERS = "com/amazonaws"; + private static final String FEATURE = "camel-aws-sns"; + @BuildStep FeatureBuildItem feature() { - return new FeatureBuildItem(FeatureBuildItem.CAMEL_AWS_SNS); + return new FeatureBuildItem(FEATURE); } @BuildStep diff --git a/extensions/aws-sqs/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sqs/deployment/CamelAwsSQSProcessor.java b/extensions/aws-sqs/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sqs/deployment/CamelAwsSQSProcessor.java index dc6fa75..5323fce 100644 --- a/extensions/aws-sqs/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sqs/deployment/CamelAwsSQSProcessor.java +++ b/extensions/aws-sqs/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sqs/deployment/CamelAwsSQSProcessor.java @@ -51,9 +51,11 @@ class CamelAwsSQSProcessor { public static final String AWS_SQS_APPLICATION_ARCHIVE_MARKERS = "com/amazonaws"; + private static final String FEATURE = "camel-aws-sqs"; + @BuildStep FeatureBuildItem feature() { - return new FeatureBuildItem(FeatureBuildItem.CAMEL_AWS_SQS); + return new FeatureBuildItem(FEATURE); } @BuildStep diff --git a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelProcessor.java b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelProcessor.java index 7f45d9a..8fce03b 100644 --- a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelProcessor.java +++ b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelProcessor.java @@ -72,6 +72,8 @@ class CamelProcessor { private static final List<Class<? extends Annotation>> CAMEL_REFLECTIVE_ANNOTATIONS = Arrays.asList(); + private static final String FEATURE = "camel-core"; + @Inject BuildProducer<ReflectiveClassBuildItem> reflectiveClass; @Inject @@ -113,7 +115,7 @@ class CamelProcessor { @BuildStep FeatureBuildItem feature() { - return new FeatureBuildItem(FeatureBuildItem.CAMEL_CORE); + return new FeatureBuildItem(FEATURE); } @BuildStep diff --git a/extensions/infinispan/deployment/src/main/java/org/apache/camel/quarkus/component/infinispan/deployment/CamelInfinispanProcessor.java b/extensions/infinispan/deployment/src/main/java/org/apache/camel/quarkus/component/infinispan/deployment/CamelInfinispanProcessor.java index 9c9352d..3384e3c 100644 --- a/extensions/infinispan/deployment/src/main/java/org/apache/camel/quarkus/component/infinispan/deployment/CamelInfinispanProcessor.java +++ b/extensions/infinispan/deployment/src/main/java/org/apache/camel/quarkus/component/infinispan/deployment/CamelInfinispanProcessor.java @@ -24,6 +24,8 @@ import io.quarkus.deployment.builditem.substrate.ReflectiveClassBuildItem; class CamelInfinispanProcessor { + private static final String FEATURE = "camel-infinispan"; + @BuildStep ReflectiveClassBuildItem reflection() { return new ReflectiveClassBuildItem(true, true, InfinispanConfiguration.class); @@ -31,6 +33,6 @@ class CamelInfinispanProcessor { @BuildStep FeatureBuildItem feature() { - return new FeatureBuildItem(FeatureBuildItem.CAMEL_INFINISPAN); + return new FeatureBuildItem(FEATURE); } } diff --git a/extensions/jdbc/deployment/src/main/java/org/apache/camel/quarkus/component/jdbc/deployment/CamelJdbcProcessor.java b/extensions/jdbc/deployment/src/main/java/org/apache/camel/quarkus/component/jdbc/deployment/CamelJdbcProcessor.java index 148305b..8de332e 100644 --- a/extensions/jdbc/deployment/src/main/java/org/apache/camel/quarkus/component/jdbc/deployment/CamelJdbcProcessor.java +++ b/extensions/jdbc/deployment/src/main/java/org/apache/camel/quarkus/component/jdbc/deployment/CamelJdbcProcessor.java @@ -21,9 +21,11 @@ import io.quarkus.deployment.builditem.FeatureBuildItem; class CamelJdbcProcessor { + private static final String FEATURE = "camel-jdbc"; + @BuildStep FeatureBuildItem feature() { - return new FeatureBuildItem(FeatureBuildItem.CAMEL_JDBC); + return new FeatureBuildItem(FEATURE); } } diff --git a/extensions/netty4-http/deployment/src/main/java/org/apache/camel/quarkus/component/netty4http/deployment/CamelNetty4HTTPProcessor.java b/extensions/netty4-http/deployment/src/main/java/org/apache/camel/quarkus/component/netty4http/deployment/CamelNetty4HTTPProcessor.java index d0fe45c..0a7aede 100644 --- a/extensions/netty4-http/deployment/src/main/java/org/apache/camel/quarkus/component/netty4http/deployment/CamelNetty4HTTPProcessor.java +++ b/extensions/netty4-http/deployment/src/main/java/org/apache/camel/quarkus/component/netty4http/deployment/CamelNetty4HTTPProcessor.java @@ -21,8 +21,10 @@ import io.quarkus.deployment.builditem.FeatureBuildItem; class CamelNetty4HTTPProcessor { + private static final String FEATURE = "camel-netty-http4"; + @BuildStep FeatureBuildItem feature() { - return new FeatureBuildItem(FeatureBuildItem.CAMEL_NETTY4_HTTP); + return new FeatureBuildItem(FEATURE); } } diff --git a/extensions/salesforce/deployment/src/main/java/org/apache/camel/quarkus/component/salesforce/deployment/CamelSalesforceProcessor.java b/extensions/salesforce/deployment/src/main/java/org/apache/camel/quarkus/component/salesforce/deployment/CamelSalesforceProcessor.java index b4c015d..7a35f4e 100644 --- a/extensions/salesforce/deployment/src/main/java/org/apache/camel/quarkus/component/salesforce/deployment/CamelSalesforceProcessor.java +++ b/extensions/salesforce/deployment/src/main/java/org/apache/camel/quarkus/component/salesforce/deployment/CamelSalesforceProcessor.java @@ -25,9 +25,11 @@ import io.quarkus.deployment.builditem.substrate.ReflectiveClassBuildItem; class CamelSalesforceProcessor { + private static final String FEATURE = "camel-salesforce"; + @BuildStep FeatureBuildItem feature() { - return new FeatureBuildItem(FeatureBuildItem.CAMEL_SALESFORCE); + return new FeatureBuildItem(FEATURE); } @BuildStep diff --git a/extensions/servlet/deployment/src/main/java/org/apache/camel/quarkus/component/servlet/deployment/CamelServletProcessor.java b/extensions/servlet/deployment/src/main/java/org/apache/camel/quarkus/component/servlet/deployment/CamelServletProcessor.java index 16ccb1f..8c00b87 100644 --- a/extensions/servlet/deployment/src/main/java/org/apache/camel/quarkus/component/servlet/deployment/CamelServletProcessor.java +++ b/extensions/servlet/deployment/src/main/java/org/apache/camel/quarkus/component/servlet/deployment/CamelServletProcessor.java @@ -32,12 +32,13 @@ import io.quarkus.undertow.deployment.ServletBuildItem; import io.quarkus.undertow.deployment.ServletBuildItem.Builder; class CamelServletProcessor { + private static final String FEATURE = "camel-servlet"; CamelServletConfig camelServletConfig; @BuildStep FeatureBuildItem feature() { - return new FeatureBuildItem(FeatureBuildItem.CAMEL_SERVLET); + return new FeatureBuildItem(FEATURE); } @BuildStep