Skip to content

Commit

Permalink
Suppress split package warning in Fabric8 Openshift Client
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Jul 30, 2021
1 parent 5ff4745 commit 6d7de01
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -19,4 +22,9 @@ public void process(BuildProducer<AdditionalBeanBuildItem> additionalBeanBuildIt
public FeatureBuildItem feature() {
return new FeatureBuildItem(Feature.OPENSHIFT_CLIENT);
}

@BuildStep
public IgnoreSplitPackageBuildItem splitPackages() {
return new IgnoreSplitPackageBuildItem(Collections.singleton("io.fabric8.openshift.api.model"));
}
}

0 comments on commit 6d7de01

Please sign in to comment.