Fix jar name in library bundle when library project specifies a version.
Adam Murdoch [Thu, 20 Sep 2012 01:27:05 +0000 (11:27 +1000)]
Change-Id: I99883994fcf22642a843a84e0f6e6860009d8543

gradle/src/main/groovy/com/android/build/gradle/AndroidLibraryPlugin.groovy

index 19f973c..bd56b12 100644 (file)
@@ -102,7 +102,7 @@ class AndroidLibraryPlugin extends AndroidBasePlugin implements Plugin<Project>
         Jar jar = project.tasks.add("${buildTypeData.buildType.name}Jar", Jar);
         jar.from(variant.compileTask.outputs);
         jar.destinationDir = project.file("$project.buildDir/$DIR_BUNDLES/${variant.dirName}")
-        jar.baseName = "classes"
+        jar.archiveName = "classes.jar"
         String packageName = variantConfig.getPackageFromManifest().replace('.', '/');
         jar.exclude(packageName + "/R.class")
         jar.exclude(packageName + "/R\$*.class")