Try to add javadoc

This commit is contained in:
Chumva 2019-10-11 14:10:00 +03:00
parent 3388ac1a16
commit 009afa15af

View file

@ -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
}