comparison init40-git.gradle @ 308:410e320122bf

more printlns
author Marc Davis <davis@ssdt-ohio.org>
date Wed, 01 Feb 2023 08:46:56 -0500
parents f8329b51b6e6
children b80dc2412882
comparison
equal deleted inserted replaced
307:f8329b51b6e6 308:410e320122bf
811 println "git branch".execute().text 811 println "git branch".execute().text
812 println "checkout main" 812 println "checkout main"
813 println "git checkout main".execute().text 813 println "git checkout main".execute().text
814 } 814 }
815 println "run git tags" 815 println "run git tags"
816 println "git fetch --tags origin".execute().text 816 println "git fetch --tags --all".execute().text
817 println "run git describe --tags --abbrev=0" 817 println "run git describe --tags --abbrev=0"
818 println "git describe --tags --abbrev=0".execute().text 818 println "git describe --tags --abbrev=0".execute().text
819 def versions = "git tag".execute().text.split("\n") 819 def versions = "git tag".execute().text.split("\n")
820 .findAll { it != null || it != "" } 820 .findAll { it != null || it != "" }
821 .collect { it.replace("v", "") } 821 .collect { it.replace("v", "") }