在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):palantir/gradle-git-version开源软件地址(OpenSource Url):https://github.com/palantir/gradle-git-version开源编程语言(OpenSource Language):Java 59.7%开源软件介绍(OpenSource Introduction):Git-Version Gradle PluginWhen applied, Git-Version adds two methods to the target project. The first, called The second, called UsageApply the plugin using standard Gradle convention: Groovy plugins {
id 'com.palantir.git-version' version '<current version>'
} Kotlin plugins {
id("com.palantir.git-version") version "<current version>"
} Set the version of a project by calling: Groovy version gitVersion() Kotlin val gitVersion: groovy.lang.Closure<String> by extra
version = gitVersion() You can get an object containing more detailed information by calling: Groovy def details = versionDetails()
details.lastTag
details.commitDistance
details.gitHash
details.gitHashFull // full 40-character Git commit hash
details.branchName // is null if the repository in detached HEAD mode
details.isCleanTag Kotlin val versionDetails: groovy.lang.Closure<com.palantir.gradle.gitversion.VersionDetails> by extra
val details = versionDetails()
details.lastTag
details.commitDistance
details.gitHash
details.gitHashFull // full 40-character Git commit hash
details.branchName // is null if the repository in detached HEAD mode
details.isCleanTag You can optionally search a subset of tags with Groovy gitVersion(prefix:'my-product@') // -> 2.15.0 Kotlin val gitVersion: groovy.lang.Closure<String> by extra
gitVersion(mapOf("prefix" to "my-product@")) // -> 2.15.0 Valid prefixes are defined by the regex
TasksThis plugin adds a LicenseThis plugin is made available under the Apache 2.0 License. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论