From e4437b1d66e2a4e1dc715ac19c75935e25d5cfcf Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Tue, 9 Dec 2014 10:58:33 -0800 Subject: [PATCH] Explicitly name archive. --- build.gradle | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index f5dbda9fd..bb67b6bb3 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 {