From f32793262db3ac5026bd6e111c62306d87c91503 Mon Sep 17 00:00:00 2001 From: Nicolas Cornette Date: Mon, 9 Jan 2017 15:17:36 +0100 Subject: [PATCH] Gradle config for Jar deployment --- jobqueue/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jobqueue/build.gradle b/jobqueue/build.gradle index ba8aafc6..3771fdee 100644 --- a/jobqueue/build.gradle +++ b/jobqueue/build.gradle @@ -122,6 +122,12 @@ android.libraryVariants.all { variant -> exclude 'com/google/**' } + def jarJarTask = project.tasks.create(name: "jarJar${suffix}", type: Jar) { + from variant.javaCompile.destinationDir + from 'LICENSE.txt' + exclude 'com/google/**' + } + def javadocJarTask = project.tasks.create(name: "javadocJar${suffix}", type: Jar) { classifier = 'javadoc' from 'build/docs/javadoc' @@ -131,6 +137,8 @@ android.libraryVariants.all { variant -> from android.sourceSets.main.getJava().getSrcDirs() classifier = 'sources' } + + artifacts.add('archives', jarJarTask); artifacts.add('archives', javadocJarTask); artifacts.add('archives', sourcesJarTask); }