org.unbroken-dome.gitversion
所有者: Till Krullmann
一个帮助从Git仓库确定构建版本的插件。
https://github.com/unbroken-dome/gradle-gitversion-plugin
源:https://github.com/unbroken-dome/gradle-gitversion-plugin.git
使用插件DSL
plugins {
id("org.unbroken-dome.gitversion") version "0.10.0"
}
使用旧插件应用
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org.cn/m2/")
}
}
dependencies {
classpath("gradle.plugin.org.unbroken-dome.gradle-plugins:gradle-gitversion-plugin:0.10.0")
}
}
apply(plugin = "org.unbroken-dome.gitversion")
使用插件DSL
plugins {
id "org.unbroken-dome.gitversion" version "0.10.0"
}
使用旧插件应用
buildscript {
repositories {
maven {
url "https://plugins.gradle.org.cn/m2/"
}
}
dependencies {
classpath "gradle.plugin.org.unbroken-dome.gradle-plugins:gradle-gitversion-plugin:0.10.0"
}
}
apply plugin: "org.unbroken-dome.gitversion"