me.qoomon.maven.extension.gitversioning.config.VersioningConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-git-versioning-extension Show documentation
Show all versions of maven-git-versioning-extension Show documentation
Maven Git Versioning Extension
package me.qoomon.maven.extension.gitversioning.config;
import me.qoomon.maven.extension.gitversioning.config.model.VersionFormatDescription;
import java.util.List;
import java.util.Objects;
/**
* Created by qoomon on 30/11/2016.
*/
public class VersioningConfiguration {
private final boolean enabled;
private final List branchVersionDescriptions;
private final List tagVersionDescriptions;
private final VersionFormatDescription commitVersionDescription;
private final String providedBranch;
private final String providedTag;
public VersioningConfiguration(boolean enabled, List branchVersionDescriptions,
List tagVersionDescriptions,
VersionFormatDescription commitVersionDescription, String providedBranch, String providedTag) {
this.enabled = enabled;
this.branchVersionDescriptions = Objects.requireNonNull(branchVersionDescriptions);
this.tagVersionDescriptions = Objects.requireNonNull(tagVersionDescriptions);
this.commitVersionDescription = Objects.requireNonNull(commitVersionDescription);
this.providedBranch = providedBranch;
this.providedTag = providedTag;
}
public List getBranchVersionDescriptions() {
return branchVersionDescriptions;
}
public List getTagVersionDescriptions() {
return tagVersionDescriptions;
}
public VersionFormatDescription getCommitVersionDescription() {
return commitVersionDescription;
}
public boolean isEnabled() {
return enabled;
}
public String getProvidedBranch() {
return providedBranch;
}
public String getProvidedTag() {
return providedTag;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy