1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-10 02:39:39 +02:00

Improve OpenPgpV4FingerprintTests

This commit is contained in:
Paul Schaub 2018-07-24 14:28:41 +02:00
parent 9b68ee67d9
commit e7a6df5a87
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 12 additions and 2 deletions

View file

@ -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()) {