This commit is contained in:
s1lent 2017-05-06 21:44:22 +07:00
parent 6e7bb15807
commit 299ee99120
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -16,7 +16,7 @@ idea {
def gitInfo = GitVersioner.versionForDir(project.rootDir) def gitInfo = GitVersioner.versionForDir(project.rootDir)
RegamedllVersionInfo versionInfo RegamedllVersionInfo versionInfo
if (gitInfo.tag && gitInfo.tag[0] == 'v') { if (gitInfo && gitInfo.tag && gitInfo.tag[0] == 'v') {
def m = gitInfo.tag =~ /^v(\d+)\.(\d+)(\.(\d+))?$/ def m = gitInfo.tag =~ /^v(\d+)\.(\d+)(\.(\d+))?$/
if (!m.find()) { if (!m.find()) {
throw new RuntimeException("Invalid git version tag name ${gitInfo.tag}") throw new RuntimeException("Invalid git version tag name ${gitInfo.tag}")