Add git revision hash to version

This commit is contained in:
Jesse Boyd 2016-05-20 03:32:35 +10:00
parent 82e162ae00
commit b125ef6668

View File

@ -7,11 +7,17 @@ buildscript {
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
classpath 'org.ajoberstar:grgit:1.7.0'
}
}
group = 'com.intellectualcrafters'
version = '3.4.0-SNAPSHOT'
def revision = ""
ext {
git = org.ajoberstar.grgit.Grgit.open(file(".git"))
revision = "-${git.head().abbreviatedId}"
}
version = "3.4.0${revision}"
description = """PlotSquared"""
subprojects {