We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae9b333 commit 9f73f5bCopy full SHA for 9f73f5b
build.gradle
@@ -26,11 +26,11 @@ subprojects {
26
// Set the group and version across all subprojects to ensure consistency
27
group 'com.clarifai.clarifai-api2'
28
def details = versionDetails()
29
- if (details.commitDistance == 0) {
30
- version details.lastTag
31
- } else {
32
- version details.lastTag + '-' + details.gitHash
+ def tag = details.lastTag.replace(".dirty", "")
+ if (details.commitDistance != 0) {
+ tag = tag + '-' + details.gitHash
33
}
+ version tag
34
println("Computed version as: ${getVersion()}")
35
36
repositories {
0 commit comments