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

me.qoomon.maven.extension.gitversioning.config.VersioningConfiguration Maven / Gradle / Ivy

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