pl.allegro.tech.build.axion.release.domain.VersionIncrementerContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of axion-release-plugin Show documentation
Show all versions of axion-release-plugin Show documentation
Gradle release and version management plugin
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