Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 3472bbf

Browse files
committed
chore: Add javadoc config to read package private scope for tests
1 parent 638bc11 commit 3472bbf

2 files changed

Lines changed: 26 additions & 8 deletions

File tree

datastore-v1-proto-client/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,6 @@
124124
<argLine>-Xmx2048m</argLine>
125125
</configuration>
126126
</plugin>
127-
<plugin>
128-
<groupId>org.apache.maven.plugins</groupId>
129-
<artifactId>maven-javadoc-plugin</artifactId>
130-
<configuration>
131-
<!-- javadoc complains about: `error: No public or protected classes found to document` in tests -->
132-
<failOnError>false</failOnError>
133-
</configuration>
134-
</plugin>
135127
</plugins>
136128
</build>
137129

pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,32 @@
239239
</plugin>
240240
</plugins>
241241
</pluginManagement>
242+
<plugins>
243+
<plugin>
244+
<groupId>org.apache.maven.plugins</groupId>
245+
<artifactId>maven-javadoc-plugin</artifactId>
246+
247+
<configuration>
248+
<!-- javadoc complains about: `error: No public or protected classes found to document` in tests -->
249+
<!-- Allow package scope globally for sources and tests when building -->
250+
<show>package</show>
251+
<failOnError>false</failOnError>
252+
</configuration>
253+
254+
<executions>
255+
<execution>
256+
<id>attach-javadocs</id>
257+
<goals>
258+
<goal>jar</goal>
259+
</goals>
260+
<configuration>
261+
<!-- When building a JAR, the javadocs scope is set back to protected -->
262+
<show>protected</show>
263+
</configuration>
264+
</execution>
265+
</executions>
266+
</plugin>
267+
</plugins>
242268
</build>
243269

244270
<modules>

0 commit comments

Comments
 (0)