aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorMoxie Marlinspike <moxie@thoughtcrime.org>2014-12-09 10:58:33 -0800
committerMoxie Marlinspike <moxie@thoughtcrime.org>2014-12-09 10:58:33 -0800
commite4437b1d66e2a4e1dc715ac19c75935e25d5cfcf (patch)
treee7ec9a9df5a604bcc29149239112d5331035c1a4 /build.gradle
parent834dfb489f5fc6f2dd54ae576d84c5134bbb666d (diff)
Explicitly name archive.
Diffstat (limited to '')
-rw-r--r--build.gradle15
1 files changed, 13 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle
index f5dbda9f..bb67b6bb 100644
--- a/build.gradle
+++ b/build.gradle
@@ -14,8 +14,9 @@ apply plugin: 'witness'
apply plugin: 'maven'
apply plugin: 'signing'
-version = "1.0.0"
-group = "org.whispersystems"
+archivesBaseName = "axolotl-android"
+version = "1.0.0"
+group = "org.whispersystems"
repositories {
mavenCentral()
@@ -47,6 +48,16 @@ android {
}
}
}
+
+ libraryVariants.all { variant ->
+ variant.outputs.each { output ->
+ def outputFile = output.outputFile
+ if (outputFile != null && outputFile.name.endsWith('.aar')) {
+ def fileName = "${archivesBaseName}-${version}.aar"
+ output.outputFile = new File(outputFile.parent, fileName)
+ }
+ }
+ }
}
signing {