You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
android.libraryVariants.all { variant ->
task("${variant.name}Javadoc", type: Javadoc, dependsOn: "assemble${variant.name.capitalize()}") {
source = variant.javaCompile.source
title = "Rich Relevance"
options.links("http://docs.oracle.com/javase/7/docs/api/")
options.linksOffline("http://d.android.com/reference", "${android.sdkDirectory}/docs/reference")
// We're excluding these generated files
exclude '**/BuildConfig.java'
exclude '**/R.java'
doFirst {
// First add all of your dependencies to the classpath, then add the android jars
classpath = files(variant.javaCompile.classpath.files, android.getBootClasspath())
}
}
task("${variant.name}JavadocJar", type: Jar, dependsOn: "${variant.name}Javadoc") {
classifier = 'javadoc'
from tasks["${variant.name}Javadoc"].destinationDir
}
// Add the Javadoc jar to the project's artifacts. This will allow us to upload it easily later
project.artifacts.add("archives", tasks["${variant.name}JavadocJar"])
}
The text was updated successfully, but these errors were encountered:
Reading this gradle line android.libraryVariants.all
Why not instead doing this stuff ? CMIIW.
The text was updated successfully, but these errors were encountered: