Package org.spdx.maven
Class LicenseOverwrite
java.lang.Object
org.spdx.maven.LicenseOverwrite
Overwrite the license of a specific GAV coordinate.
- Author:
- Jörg Sautter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setArtifactId
(String artifactId) void
setGroupId
(String groupId) void
setLicenseString
(String licenseString) void
void
setVersion
(String version) toString()
-
Constructor Details
-
LicenseOverwrite
public LicenseOverwrite()Create a default, license overwrite
-
-
Method Details
-
getTarget
- Returns:
- the target to overwrite, one of: both, concluded, declared
-
getGroupId
- Returns:
- the groupId of the dependency to overwrite the license of
-
getArtifactId
- Returns:
- the artifactId of the dependency to overwrite the license of
-
getVersion
- Returns:
- the version of the dependency to overwrite the license of
-
getLicenseString
- Returns:
- the license string to use for the matching dependencies
-
setTarget
- Throws:
IllegalArgumentException
-
setGroupId
-
setArtifactId
-
setVersion
-
setLicenseString
-
appliesTo
-
toString
-