Class Dependency
java.lang.Object
io.codemodder.plugins.maven.operator.Dependency
Represents a dependency in a Maven POM. A dependency consists of a group ID, artifact ID,
version, classifier, packaging, and scope.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getScope()
int
hashCode()
void
setArtifactId
(String artifactId) void
setClassifier
(String classifier) void
setGroupId
(String groupId) void
setPackaging
(String packaging) void
void
setVersion
(String version) toString()
-
Constructor Details
-
Dependency
public Dependency(String groupId, String artifactId, String version, String classifier, String packaging, String scope) Initializes a new Dependency object with the provided attributes.- Parameters:
groupId
- The group ID of the dependency.artifactId
- The artifact ID of the dependency.version
- The version of the dependency.classifier
- The classifier of the dependency (may be null).packaging
- The packaging type of the dependency (default is "jar" if null).scope
- The scope of the dependency (default is "compile" if null).
-
-
Method Details