Skip to content
Snippets Groups Projects

simplify app version

3 files
+ 5
17
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 1
7
@@ -9,14 +9,8 @@ tasks.withType(JavaCompile) {
try {
def details = versionDetails()
def ciProjectUrl = System.getenv("CI_PROJECT_URL")
def branch = System.getenv("CI_COMMIT_BRANCH")
def versionInfo = [
branchName: branch ? branch : details.branchName,
commitDistance: details.commitDistance,
gitHash: details.gitHash,
gitHashFull: details.gitHashFull,
isCleanTag: details.isCleanTag,
lastTag: details.lastTag,
gitHash: details.gitHashFull,
projectName: project.name,
url: ciProjectUrl ? ciProjectUrl : "git config --get remote.origin.url".execute().text.replace("\n", ""),
version: details.version,
Loading