Skip to content

Commit f8b3c9a

Browse files
authored
Michael gh seg/removejavadoc (#22)
* Adding clean and build to gradle release and snapshot * Removing javadoc for testing
1 parent aada796 commit f8b3c9a

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

lib/build.gradle.kts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -85,28 +85,28 @@ tasks.withType<Test> {
8585
tasks {
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")

publishing-plugins/src/main/kotlin/mvn-publish.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ afterEvaluate {
6767
version = getVersionName()
6868

6969
artifact("$buildDir/outputs/aar/${project.getName()}-release.aar")
70-
artifact(tasks.named<Jar>("withJavadocJar"))
70+
// artifact(tasks.named<Jar>("withJavadocJar"))
7171
artifact(tasks.named<Jar>("withSourcesJar"))
7272

7373
// Provide artifacts information requited by Maven Central

0 commit comments

Comments
 (0)