
pl.allegro.tech.build.axion.release.domain.properties.VersionProperties.groovy 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.properties
import com.github.zafarkhaja.semver.Version
import groovy.transform.Immutable
@Immutable
class VersionProperties {
final String forcedVersion
final boolean forceSnapshot
final boolean ignoreUncommittedChanges
final Closure versionCreator
final Closure versionIncrementer
final boolean sanitizeVersion
boolean forceVersion() {
return forcedVersion != null
}
VersionProperties withoutForce() {
return new VersionProperties(
forcedVersion: null,
forceSnapshot: false,
ignoreUncommittedChanges: ignoreUncommittedChanges,
versionCreator: versionCreator,
versionIncrementer: versionIncrementer,
sanitizeVersion: sanitizeVersion
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy