KEMBAR78
fix: update docFX config by alicejli · Pull Request #744 · googleapis/java-shared-config · GitHub
Skip to content

Conversation

@alicejli
Copy link
Contributor

@alicejli alicejli commented Feb 9, 2024

This should fix #680

The issue is that starting with maven-javadoc-plugin v3.6.0, passing in null parameters into caused javadoc generation to fail. This PR removes that parameter and also updates the javadoc source to use Java 17 source as that is what we're publishing javadocs with now.

@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Feb 9, 2024
@alicejli alicejli marked this pull request as ready for review February 9, 2024 22:01
@alicejli alicejli requested a review from a team as a code owner February 9, 2024 22:01
<outputpath>${project.build.directory}/docfx-yml</outputpath>
<projectname>${project.artifactId}</projectname>
<excludeclasses></excludeclasses>
<excludePackages></excludePackages>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there repos that depend on overwriting this value to get the behavior they want out of the plugin? Does removing it from additionalOptions thus break them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, some of the handwritten repos have a custom DocFx profile, like java-bigtable: https://github.com/googleapis/java-bigtable/blob/main/pom.xml#L322

However, their profiles are configured to include any excluded classes and packages which should overwrite the entire default profile, so I don't think removing these additional options here will affect them.

@alicejli alicejli merged commit 096cd22 into main Feb 13, 2024
@alicejli alicejli deleted the updateDocFxProfile branch February 13, 2024 21:14
<properties>
<!-- default config values -->
<docletName>java-docfx-doclet-1.9.0</docletName>
<docletPath>${env.KOKORO_GFILE_DIR}/${docletName}.jar</docletPath>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this docletPath specifies the JAR file that has implementation of java-docfx-doclet. Don't we still need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're setting the docletPath directly in the script that publishes the Cloud RAD tarballs here: https://source.corp.google.com/piper///depot/google3/cloud/sdk/client_libraries/kokoro/java/googleapis/java-cloud-bom/release/publish_javadoc17.sh;l=45
so I don't think this is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debug why javadoc generation fails with maven-javadoc-plugin v3.6.0

3 participants