Skip to content

Commit

Permalink
fix versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
chikamura committed Apr 1, 2024
1 parent 13f04ba commit 5098b4b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ repositories {
}

group = "io.trocco"
// TODO
// version = versionDetails().lastTag
version = "0.0.0"
description = "Dumps records to Databricks."

sourceCompatibility = 1.8
targetCompatibility = 1.8

version = {
def vd = versionDetails()
if (vd.commitDistance == 0 && vd.lastTag ==~ /^v[0-9]+\.[0-9]+\.[0-9]+(\.[a-zA-Z0-9]+)?/) {
vd.lastTag.substring(1)
} else {
"0.0.0.${vd.gitHash}"
}
}()

dependencies {
compileOnly "org.embulk:embulk-api:0.10.31"
compileOnly "org.embulk:embulk-spi:0.10.31"
Expand Down

0 comments on commit 5098b4b

Please sign in to comment.