pl.allegro.tech.build.axion.release.ReleaseTask.groovy Maven / Gradle / Ivy
package pl.allegro.tech.build.axion.release
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
import pl.allegro.tech.build.axion.release.domain.Releaser
import pl.allegro.tech.build.axion.release.infrastructure.di.Context
import pl.allegro.tech.build.axion.release.infrastructure.di.GradleAwareContext
class ReleaseTask extends DefaultTask {
@TaskAction
void release() {
Context context = GradleAwareContext.create(project)
Releaser releaser = context.releaser()
releaser.release(context.rules())
releaser.pushRelease()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy