mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 12:06:15 +01:00
Add git revision hash to version
This commit is contained in:
parent
82e162ae00
commit
b125ef6668
@ -7,11 +7,17 @@ buildscript {
|
|||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
|
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
|
||||||
|
classpath 'org.ajoberstar:grgit:1.7.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group = 'com.intellectualcrafters'
|
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"""
|
description = """PlotSquared"""
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
|
Loading…
Reference in New Issue
Block a user