Commit e38bf6a1 authored by Geoffrey Métais's avatar Geoffrey Métais

Generate Javadoc for all libs

parent 8f6cc0f0
......@@ -50,22 +50,6 @@ android {
}
}
task generateSources (type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
failOnError false
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
clean {
delete 'build', 'jni/libs', 'jni/obj'
}
......@@ -75,9 +59,4 @@ dependencies {
api "androidx.legacy:legacy-support-v4:$rootProject.ext.androidxVersion"
}
artifacts {
archives javadocJar
archives generateSources
}
apply from: '../publish.gradle'
......@@ -83,11 +83,6 @@ android {
}
}
task generateSources (type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}
clean {
delete 'build', 'jni/libs', 'jni/obj'
}
......
......@@ -15,7 +15,18 @@ task sourcesJar(type: Jar) {
classifier = 'sources'
}
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
}
artifacts {
archives javadocJar
archives sourcesJar
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment