mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Add git revision hash to version
This commit is contained in:
parent
82e162ae00
commit
b125ef6668
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user