mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-08 16:18:05 +03:00
Disable version inference when no git history present (Fixes #256)
This commit is contained in:
@@ -53,9 +53,13 @@ license {
|
|||||||
excludes(['**/djb/Curve25519.java', '**/sshj/common/Base64.java'])
|
excludes(['**/djb/Curve25519.java', '**/sshj/common/Base64.java'])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (project.file('.git').isDirectory()) {
|
||||||
release {
|
release {
|
||||||
grgit = org.ajoberstar.grgit.Grgit.open(project.projectDir)
|
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
|
||||||
if (JavaVersion.current().isJava8Compatible()) {
|
if (JavaVersion.current().isJava8Compatible()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user