@@ -85,28 +85,28 @@ tasks.withType<Test> {
8585tasks {
8686 val sourceFiles = android.sourceSets.getByName(" main" ).java.srcDirs
8787
88- register<Javadoc >(" withJavadoc" ) {
89- isFailOnError = false
90-
91- setSource(sourceFiles)
92-
93- // add Android runtime classpath
94- android.bootClasspath.forEach { classpath + = project.fileTree(it) }
95-
96- // add classpath for all dependencies
97- android.libraryVariants.forEach { variant ->
98- variant.javaCompileProvider.get().classpath.files.forEach { file ->
99- classpath + = project.fileTree(file)
100- }
101- }
102- }
103-
104- register<Jar >(" withJavadocJar" ) {
105- archiveClassifier.set(" javadoc" )
106- dependsOn(named(" withJavadoc" ))
107- val destination = named<Javadoc >(" withJavadoc" ).get().destinationDir
108- from(destination)
109- }
88+ // register<Javadoc>("withJavadoc") {
89+ // isFailOnError = false
90+ //
91+ // setSource(sourceFiles)
92+ //
93+ // // add Android runtime classpath
94+ // android.bootClasspath.forEach { classpath += project.fileTree(it) }
95+ //
96+ // // add classpath for all dependencies
97+ // android.libraryVariants.forEach { variant ->
98+ // variant.javaCompileProvider.get().classpath.files.forEach { file ->
99+ // classpath += project.fileTree(file)
100+ // }
101+ // }
102+ // }
103+
104+ // register<Jar>("withJavadocJar") {
105+ // archiveClassifier.set("javadoc")
106+ // dependsOn(named("withJavadoc"))
107+ // val destination = named<Javadoc>("withJavadoc").get().destinationDir
108+ // from(destination)
109+ // }
110110
111111 register<Jar >(" withSourcesJar" ) {
112112 archiveClassifier.set(" sources" )
0 commit comments