Skip to content

Commit bce0b2d

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

File tree

1 file changed

+25
-34
lines changed

1 file changed

+25
-34
lines changed

pom.xml

Lines changed: 25 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -478,53 +478,44 @@
478478
<name>docFX</name>
479479
</property>
480480
</activation>
481-
<reporting>
481+
<properties>
482+
<!-- default config values -->
483+
<docletName>java-docfx-doclet-1.3.0</docletName>
484+
<outputpath>${project.build.directory}/docfx-yml</outputpath>
485+
<projectname>${project.artifactId}</projectname>
486+
<excludeclasses></excludeclasses>
487+
<excludePackages></excludePackages>
488+
<source>7</source>
489+
<sourceFileExclude></sourceFileExclude>
490+
</properties>
491+
<build>
482492
<plugins>
483493
<plugin>
484494
<groupId>org.apache.maven.plugins</groupId>
485495
<artifactId>maven-javadoc-plugin</artifactId>
486496
<version>3.3.1</version>
487-
<reportSets>
488-
<reportSet>
489-
<id>docFX</id>
490-
<reports>
491-
<report>javadoc</report>
492-
<report>aggregate</report>
493-
<report>aggregate-jar</report>
494-
</reports>
495-
</reportSet>
496-
</reportSets>
497497
<configuration>
498498
<doclet>com.microsoft.doclet.DocFxDoclet</doclet>
499499
<useStandardDocletOptions>false</useStandardDocletOptions>
500-
<docletPath>${env.KOKORO_GFILE_DIR}/java-docfx-doclet-1.3.0.jar</docletPath>
501-
<additionalOptions>-outputpath ${project.build.directory}/docfx-yml -projectname ${artifactId}</additionalOptions>
500+
<!-- custom config with -Dproperty=value -->
501+
<docletPath>${env.KOKORO_GFILE_DIR}/${docletName}.jar</docletPath>
502+
<additionalOptions>
503+
-outputpath ${outputpath}
504+
-projectname ${projectname}
505+
-excludeclasses ${excludeclasses}:
506+
-excludepackages ${excludePackages}:
507+
</additionalOptions>
502508
<doclint>none</doclint>
503509
<show>protected</show>
504510
<nohelp>true</nohelp>
505-
<source>7</source>
506-
<groups>
507-
<group>
508-
<title>google-auth-library-credentials</title>
509-
<packages>com.google.auth*</packages>
510-
</group>
511-
<group>
512-
<title>google-auth-library-oauth2-http</title>
513-
<packages>com.google.auth.http*:com.google.auth.oauth2*</packages>
514-
</group>
515-
<group>
516-
<title>google-auth-library-appengine</title>
517-
<packages>com.google.auth.appengine*</packages>
518-
</group>
519-
</groups>
520-
<links>
521-
<link>http://download.oracle.com/javase/7/docs/api/</link>
522-
<link>http://cloud.google.com/appengine/docs/java/javadoc</link>
523-
</links>
511+
<source>${source}</source>
512+
<sourceFileExcludes>
513+
<exclude>${sourceFileExclude}</exclude>
514+
</sourceFileExcludes>
524515
</configuration>
525-
</plugin>
516+
</plugin>
526517
</plugins>
527-
</reporting>
518+
</build>
528519
</profile>
529520
</profiles>
530521
</project>

0 commit comments

Comments
 (0)