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

ru.fix.gradle.release.plugin.CreateReleaseBranchTask.kt Maven / Gradle / Ivy

Go to download

Plugin automatically creates branches and tags and changes version in project gradle.properties file.

There is a newer version: 1.4.3
Show newest version
package ru.fix.gradle.release.plugin

import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction

open class CreateReleaseBranchTask : DefaultTask() {

    @TaskAction
    fun createReleaseBranch() {
        val userInteractor = GradleUserInteractor(project)
        try {
            BranchGardener(
                    project,
                    userInteractor,
                    ProjectFilesLookup(project, userInteractor)).createReleaseBranch()
        } catch (exc: Exception) {
            userInteractor.error(exc.message ?: "")
            throw exc
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy