From 6d7de01db309797858be39d582b6ee3bc888164d Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 30 Jul 2021 12:00:06 +0300 Subject: [PATCH] Suppress split package warning in Fabric8 Openshift Client Fixes: #19092 --- .../client/deployment/OpenShiftClientProcessor.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extensions/openshift-client/deployment/src/main/java/io/quarkus/openshift/client/deployment/OpenShiftClientProcessor.java b/extensions/openshift-client/deployment/src/main/java/io/quarkus/openshift/client/deployment/OpenShiftClientProcessor.java index 4f01cd46bbc69d..6004d851bebf4d 100644 --- a/extensions/openshift-client/deployment/src/main/java/io/quarkus/openshift/client/deployment/OpenShiftClientProcessor.java +++ b/extensions/openshift-client/deployment/src/main/java/io/quarkus/openshift/client/deployment/OpenShiftClientProcessor.java @@ -1,6 +1,9 @@ package io.quarkus.openshift.client.deployment; +import java.util.Collections; + import io.quarkus.arc.deployment.AdditionalBeanBuildItem; +import io.quarkus.arc.deployment.IgnoreSplitPackageBuildItem; import io.quarkus.deployment.Feature; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; @@ -19,4 +22,9 @@ public void process(BuildProducer additionalBeanBuildIt public FeatureBuildItem feature() { return new FeatureBuildItem(Feature.OPENSHIFT_CLIENT); } + + @BuildStep + public IgnoreSplitPackageBuildItem splitPackages() { + return new IgnoreSplitPackageBuildItem(Collections.singleton("io.fabric8.openshift.api.model")); + } }