From 639e4ad65f93f6d178a43fac1fae8e8d277e4a50 Mon Sep 17 00:00:00 2001 From: Peter Palaga Date: Fri, 4 Jun 2021 12:25:46 +0200 Subject: [PATCH] Remove -H:+InlineBeforeAnalysis from Spring RabbitMQ test once Quarkus has InlineBeforeAnalysisBuildItem #2416 --- .../deployment/SpringRabbitmqProcessor.java | 6 ++++++ .../src/main/resources/application.properties | 17 ----------------- 2 files changed, 6 insertions(+), 17 deletions(-) delete mode 100644 integration-tests/spring-rabbitmq/src/main/resources/application.properties diff --git a/extensions/spring-rabbitmq/deployment/src/main/java/org/apache/camel/quarkus/component/spring/rabbitmq/deployment/SpringRabbitmqProcessor.java b/extensions/spring-rabbitmq/deployment/src/main/java/org/apache/camel/quarkus/component/spring/rabbitmq/deployment/SpringRabbitmqProcessor.java index 9f9fb06f0e50..a2925552a682 100644 --- a/extensions/spring-rabbitmq/deployment/src/main/java/org/apache/camel/quarkus/component/spring/rabbitmq/deployment/SpringRabbitmqProcessor.java +++ b/extensions/spring-rabbitmq/deployment/src/main/java/org/apache/camel/quarkus/component/spring/rabbitmq/deployment/SpringRabbitmqProcessor.java @@ -19,6 +19,7 @@ import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.FeatureBuildItem; +import io.quarkus.deployment.builditem.nativeimage.InlineBeforeAnalysisBuildItem; import io.quarkus.deployment.builditem.nativeimage.NativeImageProxyDefinitionBuildItem; import org.springframework.amqp.rabbit.connection.ChannelProxy; import org.springframework.aop.SpringProxy; @@ -43,4 +44,9 @@ void initProxies(BuildProducer proxies) { DecoratingProxy.class.getCanonicalName())); } + @BuildStep + InlineBeforeAnalysisBuildItem inlineBeforeAnalysis() { + return new InlineBeforeAnalysisBuildItem(); + } + } diff --git a/integration-tests/spring-rabbitmq/src/main/resources/application.properties b/integration-tests/spring-rabbitmq/src/main/resources/application.properties deleted file mode 100644 index 03b5ac275a20..000000000000 --- a/integration-tests/spring-rabbitmq/src/main/resources/application.properties +++ /dev/null @@ -1,17 +0,0 @@ -## --------------------------------------------------------------------------- -## 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. -## --------------------------------------------------------------------------- -quarkus.native.additional-build-args=-H:+InlineBeforeAnalysis \ No newline at end of file