All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.enofex.naikan.maven.provider.bom.ProjectProvider Maven / Gradle / Ivy

Go to download

The Naikan Model Plugin for Naikan the software inventory management tool for dev teams driven by our CI/CD pipeline.

The newest version!
package com.enofex.naikan.maven.provider.bom;

import com.enofex.naikan.model.Bom;
import com.enofex.naikan.model.Organization;
import com.enofex.naikan.model.Project;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.project.MavenProject;

public final class ProjectProvider extends BomProvider {

  @Override
  public Project provide(MavenSession session, MavenProject project, Bom existingBom) {
    return existingBom != null && existingBom.project() != null
        ? existingBom.project() : null;
  }

  @Override
  public boolean support(Class clazz) {
    return Organization.class.isAssignableFrom(clazz);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy