ru.fix.gradle.release.plugin.ReleasePlugin.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-release-plugin Show documentation
Show all versions of gradle-release-plugin Show documentation
Plugin automatically creates branches and tags and changes version in project gradle.properties file.
package ru.fix.gradle.release.plugin
import org.gradle.api.Plugin
import org.gradle.api.Project
class ReleasePlugin : Plugin {
override fun apply(project: Project) {
project.extensions.create("ru.fix.gradle.release", ReleaseExtension::class.java)
project.tasks.create("createRelease", CreateReleaseTask::class.java)
project.tasks.create("createReleaseBranch", CreateReleaseBranchTask::class.java)
}
}