diff options
Diffstat (limited to 'gradle')
| -rw-r--r-- | gradle/scripts/git-scm-version.gradle | 6 | ||||
| -rw-r--r-- | gradle/wrapper/gradle-wrapper.properties | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gradle/scripts/git-scm-version.gradle b/gradle/scripts/git-scm-version.gradle index 685c95ed8..c6a7cfa09 100644 --- a/gradle/scripts/git-scm-version.gradle +++ b/gradle/scripts/git-scm-version.gradle @@ -15,7 +15,11 @@ import java.time.format.DateTimeFormatter ext { git = Grgit.open(currentDir: projectDir) gitVersionName = git.describe(match: ["v[0-9.rc]*"]) - gitVersionCode = Integer.parseInt(DateTimeFormatter.ofPattern("yyMMddHHmm").format(git.head().dateTime)) + hh = Integer.parseInt(DateTimeFormatter.ofPattern("HH").format(git.head().dateTime)) + mm = Integer.parseInt(DateTimeFormatter.ofPattern("mm").format(git.head().dateTime)) + hhmm = Math.round((hh*4)+(mm/15)).toString() + yyyyMMdd = DateTimeFormatter.ofPattern("yyyyMMdd").format(git.head().dateTime) + gitVersionCode = Integer.parseInt(yyyyMMdd + hhmm) } task printVersion() { diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 25f587d12..7292aa85e 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,3 +3,4 @@ distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-5.6-all.zip +distributionSha256Sum=33214524e686838c88a88e14e8b30e2323589cc9698186bc8e0594758b132b31 |
