Class LicenseOverwrite

java.lang.Object
org.spdx.maven.LicenseOverwrite

public class LicenseOverwrite extends Object
Overwrite the license of a specific GAV coordinate.
Author:
Jörg Sautter
  • Constructor Details

    • LicenseOverwrite

      public LicenseOverwrite()
      Create a default, license overwrite
  • Method Details

    • getTarget

      public String getTarget()
      Returns:
      the target to overwrite, one of: both, concluded, declared
    • getGroupId

      public String getGroupId()
      Returns:
      the groupId of the dependency to overwrite the license of
    • getArtifactId

      public String getArtifactId()
      Returns:
      the artifactId of the dependency to overwrite the license of
    • getVersion

      public String getVersion()
      Returns:
      the version of the dependency to overwrite the license of
    • getLicenseString

      public String getLicenseString()
      Returns:
      the license string to use for the matching dependencies
    • setTarget

      public void setTarget(String target) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • setGroupId

      public void setGroupId(String groupId)
    • setArtifactId

      public void setArtifactId(String artifactId)
    • setVersion

      public void setVersion(String version)
    • setLicenseString

      public void setLicenseString(String licenseString)
    • appliesTo

      public boolean appliesTo(org.apache.maven.project.MavenProject mavenProject, String target)
    • toString

      public String toString()
      Overrides:
      toString in class Object