mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 07:10:53 +03:00
Disable version inference when no git history present (Fixes #256)
This commit is contained in:
@@ -53,8 +53,12 @@ license {
|
||||
excludes(['**/djb/Curve25519.java', '**/sshj/common/Base64.java'])
|
||||
}
|
||||
|
||||
release {
|
||||
grgit = org.ajoberstar.grgit.Grgit.open(project.projectDir)
|
||||
if (project.file('.git').isDirectory()) {
|
||||
release {
|
||||
grgit = org.ajoberstar.grgit.Grgit.open(project.projectDir)
|
||||
}
|
||||
} else {
|
||||
version = "0.0.0-no.git"
|
||||
}
|
||||
|
||||
// This disables the pedantic doclint feature of JDK8
|
||||
|
||||
Reference in New Issue
Block a user