You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2026/06/14 06:05:22 UTC
(poi) 04/11: Add a dependency from javadoc to jar
This is an automated email from the ASF dual-hosted git repository.
centic9 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git
commit 1f6a0b62b2356ddfd8b6f9fa24b73f99bc01316c
Author: Dominik Stadler <do...@gmx.at>
AuthorDate: Mon Jan 12 18:23:44 2026 +0100
Add a dependency from javadoc to jar
Builds in CI sometimes fail because the jar file is
still written to when javadoc tries to access it because
of parallel building. By adding this dependency, we enforce
serial ordering of these two dependent steps.
---
poi-ooxml/build.gradle | 2 ++
poi-scratchpad/build.gradle | 2 ++
2 files changed, 4 insertions(+)
diff --git a/poi-ooxml/build.gradle b/poi-ooxml/build.gradle
index 93c422fc93..b39eee54c2 100644
--- a/poi-ooxml/build.gradle
+++ b/poi-ooxml/build.gradle
@@ -211,6 +211,8 @@ task testJar(type: Jar, dependsOn: testClasses) {
}
javadoc {
+ dependsOn configurations.javadocs.dependencies.collect{ ':' + project.project(it.path).name + ':compileJava' }
+
failOnError = true
doFirst {
options {
diff --git a/poi-scratchpad/build.gradle b/poi-scratchpad/build.gradle
index c65c227cbc..e9efb55e06 100644
--- a/poi-scratchpad/build.gradle
+++ b/poi-scratchpad/build.gradle
@@ -112,6 +112,8 @@ task testJar(type: Jar, dependsOn: testClasses) {
}
javadoc {
+ dependsOn configurations.javadocs.dependencies.collect{ ':' + project.project(it.path).name + ':compileJava' }
+
doFirst {
options {
classpath += configurations.javadocs.files
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org