Skip to content

Commit

Permalink
fix can't build camel-fhir extension native image apache#2906
Browse files Browse the repository at this point in the history
  • Loading branch information
ffang committed Jul 15, 2021
1 parent 7054a3a commit 6bbf708
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,27 @@
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;

final class FhirProcessor {
private static final String FEATURE = "camel-fhir";

private static final String[] RUNTIME_INITIALIZED_CLASSES = new String[] {
"org.apache.http.impl.auth.NTLMEngineImpl"
};

@BuildStep
FeatureBuildItem feature() {
return new FeatureBuildItem(FEATURE);
}

@BuildStep
void configureRuntimeInitializedClasses(BuildProducer<RuntimeInitializedClassBuildItem> runtimeInitializedClass) {
for (String className : RUNTIME_INITIALIZED_CLASSES) {
runtimeInitializedClass.produce(new RuntimeInitializedClassBuildItem(className));
}
}

@BuildStep
ExtensionSslNativeSupportBuildItem activateSslNativeSupport() {
return new ExtensionSslNativeSupportBuildItem(FEATURE);
Expand Down

0 comments on commit 6bbf708

Please sign in to comment.