Skip to content

Commit ded05ac

Browse files
authored
chore: cleanup cloud RAD generation (#1502)
Same as googleapis/java-shared-config#344
1 parent 1a5826d commit ded05ac

File tree

1 file changed

+27
-18
lines changed

1 file changed

+27
-18
lines changed

pom.xml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -695,35 +695,44 @@
695695
<name>docFX</name>
696696
</property>
697697
</activation>
698-
<reporting>
698+
<properties>
699+
<!-- default config values -->
700+
<docletName>java-docfx-doclet-1.3.0</docletName>
701+
<outputpath>${project.build.directory}/docfx-yml</outputpath>
702+
<projectname>${project.artifactId}</projectname>
703+
<excludeclasses></excludeclasses>
704+
<excludePackages>com\.google\.api\.client\.findbugs:com\.google\.api\.client\.test:com\.google\.api\.services</excludePackages>
705+
<source>8</source>
706+
<sourceFileExclude></sourceFileExclude>
707+
</properties>
708+
<build>
699709
<plugins>
700710
<plugin>
701711
<groupId>org.apache.maven.plugins</groupId>
702712
<artifactId>maven-javadoc-plugin</artifactId>
703713
<version>3.3.1</version>
704-
<reportSets>
705-
<reportSet>
706-
<id>docFX</id>
707-
<reports>
708-
<report>javadoc</report>
709-
<report>aggregate</report>
710-
<report>aggregate-jar</report>
711-
</reports>
712-
</reportSet>
713-
</reportSets>
714714
<configuration>
715715
<doclet>com.microsoft.doclet.DocFxDoclet</doclet>
716716
<useStandardDocletOptions>false</useStandardDocletOptions>
717-
<docletPath>${env.KOKORO_GFILE_DIR}/java-docfx-doclet-1.3.0.jar</docletPath>
717+
<!-- custom config with -Dproperty=value -->
718+
<docletPath>${env.KOKORO_GFILE_DIR}/${docletName}.jar</docletPath>
718719
<additionalOptions>
719-
-outputpath ${project.build.directory}/docfx-yml
720-
-projectname ${artifactId}
721-
-excludepackages com\.google\.api\.client\.findbugs:com\.google\.api\.client\.test:com\.google\.api\.services
720+
-outputpath ${outputpath}
721+
-projectname ${projectname}
722+
-excludeclasses ${excludeclasses}:
723+
-excludepackages ${excludePackages}:
722724
</additionalOptions>
725+
<doclint>none</doclint>
726+
<show>protected</show>
727+
<nohelp>true</nohelp>
728+
<source>${source}</source>
729+
<sourceFileExcludes>
730+
<exclude>${sourceFileExclude}</exclude>
731+
</sourceFileExcludes>
723732
</configuration>
724-
</plugin>
733+
</plugin>
725734
</plugins>
726-
</reporting>
727-
</profile>
735+
</build>
736+
</profile>
728737
</profiles>
729738
</project>

0 commit comments

Comments
 (0)