Try to add javadoc
This commit is contained in:
parent
3388ac1a16
commit
009afa15af
1 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue