aboutsummaryrefslogtreecommitdiffstats
path: root/libs/minidns/build.gradle
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-12-09 14:33:36 +0100
committerDaniel Gultsch <daniel@gultsch.de>2014-12-09 14:33:36 +0100
commit16e3c07cf116bb4d61a3d30a3841576523e7dbc2 (patch)
tree7d794290b9cf96e22602ea7002c8239b58849d01 /libs/minidns/build.gradle
parent78370094e9c9c2f58cb5f969217db555f9a283c2 (diff)
parent0193cdb194b76acbc75742e46d186e5bc4a0b159 (diff)
Merge pull request #710 from betheg/as
update android gradle plugin to 0.14.4
Diffstat (limited to 'libs/minidns/build.gradle')
-rw-r--r--libs/minidns/build.gradle7
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/minidns/build.gradle b/libs/minidns/build.gradle
index 5941beaf..c9b93467 100644
--- a/libs/minidns/build.gradle
+++ b/libs/minidns/build.gradle
@@ -19,7 +19,10 @@ group = 'de.measite.minidns'
description = "A minimal DNS client library with support for A, AAAA, NS and SRV records"
sourceCompatibility = 1.7
version = 'git tag --points-at HEAD'.execute().text.trim()
-isSNAPSHOT = 'git rev-parse --abbrev-ref HEAD'.execute().text.trim() == 'master'
+
+ext {
+ isSNAPSHOT = 'git rev-parse --abbrev-ref HEAD'.execute().text.trim() == 'master'
+}
if (isSNAPSHOT) {
version = version + '-SNAPSHOT'
@@ -74,4 +77,4 @@ modifyPom {
}
dependencies {
-} \ No newline at end of file
+}