1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| android.libraryVariants.all { variant -> task("generate${variant.name}Javadoc", type: Javadoc) { title = "$name $version API" source = variant.javaCompile.source ext.androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar" classpath = files(variant.javaCompile.classpath.files, ext.androidJar) options { links("http://docs.oracle.com/javase/8/docs/api/"); linksOffline("http://d.android.com/reference", "${android.sdkDirectory}/docs/reference"); encoding "UTF-8" charSet 'UTF-8' author true version true splitIndex true noDeprecated true setMemberLevel(JavadocMemberLevel.PUBLIC) } failOnError false exclude '**/BuildConfig.java' exclude '**/R.java' } }
|