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

pl.allegro.tech.build.axion.release.domain.VersionIncrementerContext Maven / Gradle / Ivy

There is a newer version: 1.18.15
Show newest version
package pl.allegro.tech.build.axion.release.domain;

import com.github.zafarkhaja.semver.Version;
import pl.allegro.tech.build.axion.release.domain.scm.ScmPosition;

public class VersionIncrementerContext {

    private final Version currentVersion;
    private final ScmPosition scmPosition;
    private final boolean isLegacyDefTagnameRepo;

    public VersionIncrementerContext(Version currentVersion, ScmPosition scmPosition, boolean isLegacyDefTagnameRepo) {
        this.currentVersion = currentVersion;
        this.scmPosition = scmPosition;
        this.isLegacyDefTagnameRepo = isLegacyDefTagnameRepo;
    }

    public VersionIncrementerContext(Version currentVersion, ScmPosition scmPosition) {
        this(currentVersion, scmPosition, false);
    }

    public Version getCurrentVersion() {
        return currentVersion;
    }

    public ScmPosition getScmPosition() {
        return scmPosition;
    }

    public boolean isLegacyDefTagnameRepo() {
        return isLegacyDefTagnameRepo;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy