com.enofex.naikan.maven.provider.bom.IntegrationsProvider Maven / Gradle / Ivy
package com.enofex.naikan.maven.provider.bom;
import com.enofex.naikan.model.Bom;
import com.enofex.naikan.model.Integrations;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.project.MavenProject;
public final class IntegrationsProvider extends BomProvider {
@Override
public Integrations provide(MavenSession session, MavenProject project, Bom existingBom) {
return existingBom != null && existingBom.integrations() != null
? existingBom.integrations() : Integrations.empty();
}
@Override
public boolean support(Class> clazz) {
return Integrations.class.isAssignableFrom(clazz);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy