Search in sources :

Example 1 with CurateOutcomeBuildItem

use of io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem in project camel-quarkus by apache.

the class Hl7Processor method indexDependencies.

@BuildStep
void indexDependencies(BuildProducer<IndexDependencyBuildItem> indexedDependency, CurateOutcomeBuildItem curateOutcome) {
    // Index any optional hapi-structures dependencies present on the classpath
    curateOutcome.getApplicationModel().getDependencies().stream().filter(appArtifact -> appArtifact.getGroupId().equals(CA_UHN_HAPI_GROUP_ID) && appArtifact.getArtifactId().startsWith("hapi-structures-")).map(appArtifact -> new IndexDependencyBuildItem(appArtifact.getGroupId(), appArtifact.getArtifactId())).forEach(indexedDependency::produce);
    // hapi-base will always be present but needs to be indexed
    indexedDependency.produce(new IndexDependencyBuildItem(CA_UHN_HAPI_GROUP_ID, "hapi-base"));
}
Also used : IndexView(org.jboss.jandex.IndexView) ReflectiveClassBuildItem(io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem) CamelSupport(org.apache.camel.quarkus.core.deployment.util.CamelSupport) Hl7Terser(org.apache.camel.component.hl7.Hl7Terser) DotName(org.jboss.jandex.DotName) Structure(ca.uhn.hl7v2.model.Structure) CurateOutcomeBuildItem(io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem) CombinedIndexBuildItem(io.quarkus.deployment.builditem.CombinedIndexBuildItem) BuildProducer(io.quarkus.deployment.annotations.BuildProducer) IndexDependencyBuildItem(io.quarkus.deployment.builditem.IndexDependencyBuildItem) BuildStep(io.quarkus.deployment.annotations.BuildStep) FeatureBuildItem(io.quarkus.deployment.builditem.FeatureBuildItem) AnnotationInstance(org.jboss.jandex.AnnotationInstance) AnnotationTarget(org.jboss.jandex.AnnotationTarget) Type(ca.uhn.hl7v2.model.Type) IndexDependencyBuildItem(io.quarkus.deployment.builditem.IndexDependencyBuildItem) BuildStep(io.quarkus.deployment.annotations.BuildStep)

Aggregations

Structure (ca.uhn.hl7v2.model.Structure)1 Type (ca.uhn.hl7v2.model.Type)1 BuildProducer (io.quarkus.deployment.annotations.BuildProducer)1 BuildStep (io.quarkus.deployment.annotations.BuildStep)1 CombinedIndexBuildItem (io.quarkus.deployment.builditem.CombinedIndexBuildItem)1 FeatureBuildItem (io.quarkus.deployment.builditem.FeatureBuildItem)1 IndexDependencyBuildItem (io.quarkus.deployment.builditem.IndexDependencyBuildItem)1 ReflectiveClassBuildItem (io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem)1 CurateOutcomeBuildItem (io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem)1 Hl7Terser (org.apache.camel.component.hl7.Hl7Terser)1 CamelSupport (org.apache.camel.quarkus.core.deployment.util.CamelSupport)1 AnnotationInstance (org.jboss.jandex.AnnotationInstance)1 AnnotationTarget (org.jboss.jandex.AnnotationTarget)1 DotName (org.jboss.jandex.DotName)1 IndexView (org.jboss.jandex.IndexView)1