com.github.janssk1.maven.plugin.graph.domain.ArtifactDependency Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-dependencygraph-plugin Show documentation
Show all versions of maven-dependencygraph-plugin Show documentation
Generates a dependency graph in graphml format
package com.github.janssk1.maven.plugin.graph.domain;
import java.util.HashSet;
import java.util.Set;
/**
* User: janssk1
* Date: 8/13/11
* Time: 9:51 PM
*/
public class ArtifactDependency {
private ArtifactRevisionIdentifier id;
private String scope;
private boolean optional;
private Set exclusions;
private String classifier;
public ArtifactDependency(ArtifactRevisionIdentifier id, String scope) {
this.id = id;
if (scope == null || scope.equals("")) {
this.scope = org.apache.maven.artifact.Artifact.SCOPE_COMPILE;
} else {
this.scope = scope;
}
optional = false;
exclusions = new HashSet();
}
public ArtifactRevisionIdentifier getId() {
return id;
}
public String getScope() {
return scope;
}
public boolean isOptional() {
return optional;
}
public void setOptional(boolean optional) {
this.optional = optional;
}
public Set getExclusions() {
return exclusions;
}
public void setClassifier(String classifier) {
this.classifier = classifier;
}
public String getClassifier() {
return classifier;
}
}