mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-10 02:39:39 +02:00
Improve OpenPgpV4FingerprintTests
This commit is contained in:
parent
9b68ee67d9
commit
e7a6df5a87
2 changed files with 12 additions and 2 deletions
|
@ -50,7 +50,7 @@ allprojects {
|
|||
mavenCentral()
|
||||
}
|
||||
|
||||
ext {
|
||||
project.ext {
|
||||
junitVersion = 4.12
|
||||
androidBootClasspath = getAndroidRuntimeJar(pgpainlessMinAndroidSdk)
|
||||
rootConfigDir = new File(rootDir, 'config')
|
||||
|
@ -67,7 +67,7 @@ allprojects {
|
|||
version = version + '-SNAPSHOT'
|
||||
}
|
||||
|
||||
if (!ext.isSnapshot && !'git describe --exact-match HEAD'.execute().text.trim().equals(ext.shortVersion)) {
|
||||
if (!project.ext.isSnapshot && !'git describe --exact-match HEAD'.execute().text.trim().equals(ext.shortVersion)) {
|
||||
throw new InvalidUserDataException('Untagged version detected! Please tag every release.')
|
||||
}
|
||||
if (!version.endsWith('-SNAPSHOT') && version != 'git tag --points-at HEAD'.execute().text.trim()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue