io.quarkiverse.cxf.deployment.logging.QuarkusCxfLoggingProcessor Maven / Gradle / Ivy
package io.quarkiverse.cxf.deployment.logging;
import java.util.stream.Stream;
import org.apache.cxf.ext.logging.LoggingFeature;
import io.quarkus.arc.deployment.UnremovableBeanBuildItem;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.IndexDependencyBuildItem;
public class QuarkusCxfLoggingProcessor {
@BuildStep
void indexDependencies(BuildProducer indexDependencies) {
Stream.of(
"org.apache.cxf:cxf-rt-features-logging")
.forEach(ga -> {
String[] coords = ga.split(":");
indexDependencies.produce(new IndexDependencyBuildItem(coords[0], coords[1]));
});
}
@BuildStep
void unremovableBean(BuildProducer unremovable) {
unremovable.produce(UnremovableBeanBuildItem.beanTypes(LoggingFeature.class));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy