summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurimas Liutikas <aurimas@google.com>2017-05-01 15:47:15 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-05-01 15:47:16 +0000
commite26850bab3f81957eee3a82643f8b6a0ffe81b90 (patch)
tree380cc9ed71a59c77a00e21b0863065daa4505f0e
parentf4786280c494518bde7c0afbb4bf3734548da936 (diff)
parentfd97bb8f04182220658b39cce4601aa9bada0b6f (diff)
downloadmultidex-e26850bab3f81957eee3a82643f8b6a0ffe81b90.tar.gz
Merge "Update multidex dist task to build and zip maven repository instead of just aar."
-rw-r--r--build.gradle24
1 files changed, 11 insertions, 13 deletions
diff --git a/build.gradle b/build.gradle
index 3a5ed75..10fac34 100644
--- a/build.gradle
+++ b/build.gradle
@@ -66,9 +66,18 @@ ext.supportRepoOut = new File(buildDir, 'support_repo')
// upload anchor for subprojects to upload their artifacts
// to the local repo.
-task(dist) {
+task dist(type: Zip) {
group = BasePlugin.BUILD_GROUP
description 'Builds distribution artifacts.'
+
+ from project.ext.supportRepoOut
+ into 'm2repository'
+ destinationDir project.ext.distDir
+ baseName = String.format("top-of-tree-m2repository-%s", project.multidexVersion)
+
+ doLast {
+ logger.warn "Compressed maven artifacts to ${archivePath}"
+ }
}
subprojects {
@@ -89,18 +98,7 @@ subprojects {
}
}
- task createArtifactZip(type: Zip, dependsOn: release) {
- from release.artifacts
- into archivesBaseName
- destinationDir project.parent.distDir
- baseName = archivesBaseName
-
- doLast {
- logger.warn "Compressed maven artifacts to ${archivePath}"
- }
- }
-
- dist.dependsOn createArtifactZip
+ dist.dependsOn release
project.plugins.whenPluginAdded { plugin ->
if ("com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {