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

pl.allegro.tech.build.axion.release.domain.properties.VersionProperties.groovy Maven / Gradle / Ivy

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