ru.fix.gradle.release.plugin.CreateReleaseTask.kt Maven / Gradle / Ivy
package ru.fix.gradle.release.plugin
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
open class CreateReleaseTask : DefaultTask() {
@TaskAction
fun createRelease() {
val userInteractor = GradleUserInteractor(project)
try {
BranchGardener(
project = project,
userInteractor = userInteractor,
projectFileSystemLookup = ProjectFilesLookup(project, userInteractor)).createRelease()
}catch (exc: Exception){
userInteractor.error(exc.message ?: "")
throw exc
}
}
}