comparison init40-git.gradle @ 305:debf64aa7efc

more printlns
author Marc Davis <davis@ssdt-ohio.org>
date Wed, 01 Feb 2023 08:38:31 -0500
parents 063d6b2cc5af
children 412d4bc7a2c4
comparison
equal deleted inserted replaced
304:063d6b2cc5af 305:debf64aa7efc
809 println "git pull $repositoryUrl".execute().text 809 println "git pull $repositoryUrl".execute().text
810 println "run git branch" 810 println "run git branch"
811 println "git branch".execute().text 811 println "git branch".execute().text
812 } 812 }
813 println "run git tags" 813 println "run git tags"
814 println "git tag".execute().text 814 println "git fetch --tags origin".execute().text
815 println "run git describe --tags --abbrev=0"
816 println "git describe --tags --abbrev=0".execute().text
815 def versions = "git tag".execute().text.split("\n") 817 def versions = "git tag".execute().text.split("\n")
816 .findAll { it != null || it != "" } 818 .findAll { it != null || it != "" }
817 .collect { it.replace("v", "") } 819 .collect { it.replace("v", "") }
818 .collect { new Version(*it.split('\\.')*.toInteger()) } 820 .collect { new Version(*it.split('\\.')*.toInteger()) }
819 .sort { v1, v2 -> v2 <=> v1 } 821 .sort { v1, v2 -> v2 <=> v1 }