GitVersionPlugin

class GitVersionPlugin : Plugin<Project> (source)

Plugin that exposes git-derived version information to builds.

Adds a versions extension providing gitVersion {} and versionDetails {} Groovy-closure APIs, sets Gradle extra properties gitVersion and versionDetails for easy access, and registers a printVersion task for convenience.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun apply(project: Project)

Applies the plugin and wires up the versioning extension, properties, and tasks.