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

com.github.smreed.dropship.MavenDependency Maven / Gradle / Ivy

There is a newer version: 1.10
Show newest version
package com.github.smreed.dropship;

import java.util.Collection;

/**
 */
public class MavenDependency {
    private String groupArtifactVersion;
    private Collection excludes;

    public MavenDependency(String groupArtifactVersion) {
        if(groupArtifactVersion==null || groupArtifactVersion.isEmpty()){
            throw new IllegalArgumentException("groupArtifactVersion is empty");
        }
        this.groupArtifactVersion = groupArtifactVersion;
    }

    public MavenDependency(String groupArtifactVersion, Collection excludes) {
        this(groupArtifactVersion);
        if(excludes!=null && !excludes.isEmpty()) {
            this.excludes = excludes;
        }
    }

    public String getGroupArtifactVersion() {
        return groupArtifactVersion;
    }

    public Collection getExcludes() {
        return excludes;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy