mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-09 17:27:38 +00:00
Default gitCommitHash
This commit is contained in:
parent
a1680886a4
commit
a64a53db7f
@ -44,9 +44,11 @@ if (!project.hasProperty("gitCommitHash") && !JavaVersion.current().isJava6()) {
|
|||||||
ext.gitCommitHash = repo.head().abbreviatedId
|
ext.gitCommitHash = repo.head().abbreviatedId
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
println "Error getting commit hash: " + e.getMessage()
|
println "Error getting commit hash: " + e.getMessage()
|
||||||
ext.gitCommitHash = "no_git_id"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!project.hasProperty("gitCommitHash")) {
|
||||||
|
ext.gitCommitHash = "no_git_id"
|
||||||
|
}
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
|
Loading…
Reference in New Issue
Block a user