From bd788d5414cdbfa3dcdd76177cb958a6102449b0 Mon Sep 17 00:00:00 2001 From: Yi Hu Date: Thu, 9 Jan 2025 23:37:49 -0500 Subject: [PATCH] Do not publish javadoc jar when exportJavadoc disabled --- .../main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy index 76bc7f8a819f..e976a5c2de92 100644 --- a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy +++ b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy @@ -1862,6 +1862,7 @@ class BeamModulePlugin implements Plugin { project.artifacts.archives project.testSourcesJar project.task('javadocJar', type: Jar, dependsOn: project.javadoc) { + enabled = project.ext.exportJavadoc archiveClassifier = 'javadoc' from project.javadoc.destinationDir }