From 5ff4a02c4e47e1337226cac0ec75caf244447a08 Mon Sep 17 00:00:00 2001 From: Jorge Bescos Gascon Date: Fri, 12 Jan 2024 10:26:17 +0100 Subject: [PATCH] Fix Micronaut integration in Helidon 3.x? #7206 Signed-off-by: Jorge Bescos Gascon --- dependencies/pom.xml | 39 +++++++++---------- examples/integrations/micronaut/data/pom.xml | 13 ++++++- .../data/BeanValidationExceptionMapper.java | 5 +-- .../micronaut/data/PetResource.java | 5 +-- integrations/micronaut/cdi-processor/pom.xml | 20 +++++++++- .../src/main/java/module-info.java | 29 -------------- integrations/micronaut/cdi/pom.xml | 13 ++++--- .../micronaut/cdi/CdiExecutableMethod.java | 8 +--- .../micronaut/cdi/TestBothBean.java | 22 ++++++++++- integrations/micronaut/data/pom.xml | 15 +++++-- .../data/MicronautDataCdiExtensionTest.java | 8 ++-- 11 files changed, 96 insertions(+), 81 deletions(-) delete mode 100644 integrations/micronaut/cdi-processor/src/main/java/module-info.java diff --git a/dependencies/pom.xml b/dependencies/pom.xml index ebdc0bae3dd..97ab5c213ff 100644 --- a/dependencies/pom.xml +++ b/dependencies/pom.xml @@ -1,7 +1,7 @@ + + io.helidon.build-tools + helidon-services-plugin + + false + + diff --git a/integrations/micronaut/cdi-processor/src/main/java/module-info.java b/integrations/micronaut/cdi-processor/src/main/java/module-info.java deleted file mode 100644 index 7a7178f924c..00000000000 --- a/integrations/micronaut/cdi-processor/src/main/java/module-info.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2020, 2021 Oracle and/or its affiliates. - * - * Licensed 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. - */ - -/** - * Micronaut integration with CDI - annotation processor for Micronaut. - */ -module io.helidon.integrations.micronaut.cdi.processor { - requires io.micronaut.core; - requires io.micronaut.inject; - requires jakarta.inject; - - provides io.micronaut.inject.annotation.AnnotationTransformer with - io.helidon.integrations.micronaut.cdi.processor.ApplicationScopedTransformer, - io.helidon.integrations.micronaut.cdi.processor.RequestScopedTransformer, - io.helidon.integrations.micronaut.cdi.processor.DependentTransformer; -} diff --git a/integrations/micronaut/cdi/pom.xml b/integrations/micronaut/cdi/pom.xml index 13914c7878c..3f91213e15a 100644 --- a/integrations/micronaut/cdi/pom.xml +++ b/integrations/micronaut/cdi/pom.xml @@ -1,6 +1,6 @@