From 254ef218fb332b816be3752ba1b883105bbaae2d Mon Sep 17 00:00:00 2001 From: Chumva Date: Fri, 11 Oct 2019 12:09:26 +0300 Subject: [PATCH] Try to add library sources --- OsmAnd-api/build.gradle | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/OsmAnd-api/build.gradle b/OsmAnd-api/build.gradle index fa826c9b04..93d60435ee 100644 --- a/OsmAnd-api/build.gradle +++ b/OsmAnd-api/build.gradle @@ -1,7 +1,8 @@ apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven' -group='net.OsmAnd.OsmAnd-api' +group = 'net.OsmAnd.OsmAnd-api' +version = '2.0' android { compileSdkVersion 27 @@ -26,4 +27,18 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:support-annotations:27.1.1' +} + +task sourcesJar(type: Jar) { + classifier = 'sources' + from android.sourceSets.main.java.sourceFiles +} + +task classesJar(type: Jar) { + from "$buildDir/intermediates/classes/release" +} + +artifacts { + archives classesJar + archives sourcesJar } \ No newline at end of file