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"));
}
Aggregations