Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update docFX config #744

Merged
merged 8 commits into from
Feb 13, 2024
Merged

fix: update docFX config #744

merged 8 commits into from
Feb 13, 2024

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
44 checks passed
@alicejli alicejli deleted the updateDocFxProfile branch February 13, 2024 21:14
@@ -572,14 +572,9 @@
</activation>
<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