mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-08 00:00:54 +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'])
|
excludes(['**/djb/Curve25519.java', '**/sshj/common/Base64.java'])
|
||||||
}
|
}
|
||||||
|
|
||||||
release {
|
if (project.file('.git').isDirectory()) {
|
||||||
grgit = org.ajoberstar.grgit.Grgit.open(project.projectDir)
|
release {
|
||||||
|
grgit = org.ajoberstar.grgit.Grgit.open(project.projectDir)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
version = "0.0.0-no.git"
|
||||||
}
|
}
|
||||||
|
|
||||||
// This disables the pedantic doclint feature of JDK8
|
// This disables the pedantic doclint feature of JDK8
|
||||||
|
|||||||
Reference in New Issue
Block a user