"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gradle/scripts/git-scm-version.gradle" between
navit-0.5.5.tar.gz and navit-0.5.6.tar.gz

About: NavIt is a car navigation system with GPS tracking and a routing engine.

git-scm-version.gradle  (navit-0.5.5):git-scm-version.gradle  (navit-0.5.6)
skipping to change at line 18 skipping to change at line 18
classpath 'org.ajoberstar:grgit:2.3.0' classpath 'org.ajoberstar:grgit:2.3.0'
} }
} }
import org.ajoberstar.grgit.Grgit import org.ajoberstar.grgit.Grgit
import java.time.format.DateTimeFormatter import java.time.format.DateTimeFormatter
ext { ext {
git = Grgit.open(currentDir: projectDir) git = Grgit.open(currentDir: projectDir)
gitVersionName = git.describe(match: ["v[0-9.rc]*"]) gitVersionName = git.describe(match: ["v[0-9.rc]*"])
gitVersionCode = Integer.parseInt(DateTimeFormatter.ofPattern("yyMMddHHmm"). hh = Integer.parseInt(DateTimeFormatter.ofPattern("HH").format(git.head().da
format(git.head().dateTime)) teTime))
mm = Integer.parseInt(DateTimeFormatter.ofPattern("mm").format(git.head().da
teTime))
hhmm = Math.round((hh*4)+(mm/15)).toString()
yyyyMMdd = DateTimeFormatter.ofPattern("yyyyMMdd").format(git.head().dateTim
e)
gitVersionCode = Integer.parseInt(yyyyMMdd + hhmm)
} }
task printVersion() { task printVersion() {
println("Version Name: $gitVersionName") println("Version Name: $gitVersionName")
println("Version Code: $gitVersionCode") println("Version Code: $gitVersionCode")
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)