
pl.allegro.tech.build.axion.release.MarkNextVersionTask.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
The newest version!
package pl.allegro.tech.build.axion.release
import org.gradle.api.tasks.TaskAction
import pl.allegro.tech.build.axion.release.domain.NextVersionMarker
import pl.allegro.tech.build.axion.release.domain.properties.Properties
import pl.allegro.tech.build.axion.release.infrastructure.di.VersionResolutionContext
abstract class MarkNextVersionTask extends BaseAxionTask {
@TaskAction
void release() {
VersionResolutionContext context = resolutionContext()
NextVersionMarker marker = new NextVersionMarker(context.scmService())
Properties rules = context.rules()
marker.markNextVersion(rules.nextVersion, rules.tag, versionConfig)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy