mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-19 11:59:06 +00:00
Print error on missing git setup
This commit is contained in:
1 parent
014fe00ea7
commit
735b91692d
1 file changed
+6
-1
+6
-1
@@ -153,7 +153,12 @@ configurations.all {
|
||||
// Fix Jenkins' Git: chmod a file should not be detected as a change and append a '.dirty' to the version
|
||||
'git config core.fileMode false'.execute()
|
||||
// Pulls version from git tag
|
||||
version = minecraftVersion + "-" + gitVersion()
|
||||
try {
|
||||
version = minecraftVersion + "-" + gitVersion()
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new IllegalStateException("This mod must be version controlled by Git AND the repository must provide at least one tag!");
|
||||
}
|
||||
group = modGroup
|
||||
archivesBaseName = modId
|
||||
|
||||
|
||||
Reference in new issue
Block a user