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

com.github.janssk1.maven.plugin.graph.domain.ArtifactDependency Maven / Gradle / Ivy

There is a newer version: 1.5
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy