diff --git a/gradle/publishing.gradle b/gradle/publishing.gradle index afb8185..770a774 100644 --- a/gradle/publishing.gradle +++ b/gradle/publishing.gradle @@ -8,23 +8,22 @@ tasks.register("sourcesJar", Jar) { from android.sourceSets.main.java.srcDirs } -tasks.register('androidJavadocs', Javadoc) { - failOnError false - source = android.sourceSets.main.java.srcDirs - classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) - android.libraryVariants.all { variant -> - if (variant.name == 'release') { - owner.classpath += variant.javaCompileProvider.get().classpath - } - } - exclude '**/R.html', '**/R.*.html', '**/index.html' -} - -tasks.register('androidJavadocsJar', Jar) { - dependsOn androidJavadocs - archiveClassifier.set('javadoc') - from androidJavadocs.destinationDir -} +//tasks.register('androidJavadocs', Javadoc) { +// failOnError false +// source = android.sourceSets.main.java.srcDirs +// classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) +// android.libraryVariants.all { variant -> +// if (variant.name == 'release') { +// owner.classpath += variant.javaCompileProvider.get().classpath +// } +// } +// exclude '**/R.html', '**/R.*.html', '**/index.html' +//} +// +//tasks.register('androidJavadocsJar', Jar) { +// dependsOn androidJavadocs +// from androidJavadocs.destinationDir +//} // AGP creates the components in afterEvaluate, so we need to use it too // https://developer.android.com/studio/build/maven-publish-plugin @@ -35,7 +34,6 @@ afterEvaluate { from(components["release"]) // Adds javadocs and sources as separate jars. artifact sourcesJar - artifact androidJavadocsJar pom { name = 'Shaky' description = 'Shake-to-send-feedback library for Android' diff --git a/shaky/build.gradle b/shaky/build.gradle index 349a8ce..55fc98a 100644 --- a/shaky/build.gradle +++ b/shaky/build.gradle @@ -19,9 +19,6 @@ android { publishing { singleVariant("release") { - // if you don't want sources/javadoc, remove these lines - withSourcesJar() - withJavadocJar() } }