From 009afa15af5aefc6d354544e2fd90b28c9f895ae Mon Sep 17 00:00:00 2001 From: Chumva Date: Fri, 11 Oct 2019 14:10:00 +0300 Subject: [PATCH] Try to add javadoc --- OsmAnd-api/build.gradle | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/OsmAnd-api/build.gradle b/OsmAnd-api/build.gradle index 9609bf72e4..6be489c16d 100644 --- a/OsmAnd-api/build.gradle +++ b/OsmAnd-api/build.gradle @@ -31,7 +31,17 @@ dependencies { task sourcesJar(type: Jar) { classifier = 'sources' - from android.sourceSets.main.java.sourceFiles + from android.sourceSets.main.java.srcDirs +} + +task javadoc(type: Javadoc) { + source = android.sourceSets.main.java.srcDirs + classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) +} + +task javadocJar(type: Jar, dependsOn: javadoc) { + classifier = 'javadoc' + from javadoc.destinationDir } task classesJar(type: Jar) { @@ -40,5 +50,6 @@ task classesJar(type: Jar) { artifacts { archives classesJar + archives javadocJar archives sourcesJar } \ No newline at end of file