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

au.net.causal.maven.plugins.boxdb.db.RunnerDependency Maven / Gradle / Ivy

There is a newer version: 3.3
Show newest version
package au.net.causal.maven.plugins.boxdb.db;

/**
 * Dependency for executing a Java class.
 */
public class RunnerDependency
{
	private final String groupId;
	private final String artifactId;
	private final String version;
	private final String type;
	private final String classifier;

	public RunnerDependency(String groupId, String artifactId, String version, String type, String classifier)
	{
		this.groupId = groupId;
		this.artifactId = artifactId;
		this.version = version;
		this.type = type;
		this.classifier = classifier;
	}

	public RunnerDependency(String groupId, String artifactId, String version)
	{
		this(groupId, artifactId, version, "jar", null);
	}

	public String getGroupId()
	{
		return groupId;
	}

	public String getArtifactId()
	{
		return artifactId;
	}

	public String getVersion()
	{
		return version;
	}

	public String getType()
	{
		return type;
	}

	public String getClassifier()
	{
		return classifier;
	}

	@Override
	public String toString()
	{
		final StringBuilder sb = new StringBuilder("RunnerDependency{");
		sb.append("groupId='").append(groupId).append('\'');
		sb.append(", artifactId='").append(artifactId).append('\'');
		sb.append(", version='").append(version).append('\'');
		sb.append(", type='").append(type).append('\'');
		sb.append(", classifier='").append(classifier).append('\'');
		sb.append('}');
		return sb.toString();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy