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

Upgrade Maven Javadoc Plugin to 3.1.0 #3476

Conversation

WilliamCollishaw
Copy link
Contributor

Upgrade Maven Javadoc Plugin from 3.0.1 to 3.1.0
Additionally added wildcard syntax to the list of excluded package names due to failing without it after the upgrade

Comment from @njhill in PR #3370 notes a javadoc plugin issue with JDK 11 that should be resolved in this most recent version.

Additionally added wildcard syntax to the list of excluded package names due to failing without it after the upgrade
@ronshapiro
Copy link
Contributor

thanks! I'll import this shortly!

guava/pom.xml Outdated
@@ -128,7 +128,7 @@
<sourcepath>${project.build.sourceDirectory}:${project.build.directory}/jdk-sources</sourcepath>

<!-- Passing `-subpackages com.google.common` breaks things, so we explicitly exclude everything else instead. -->
<excludePackageNames>com.google.common.base.internal,com.google.thirdparty.publicsuffix,com.oracle,com.sun,java,javax,jdk,org,sun</excludePackageNames>
<excludePackageNames>com.google.common.base.internal.*,com.google.thirdparty.publicsuffix.*,com.oracle.*,com.sun.*,java.*,javax.*,jdk.*,org.*,sun.*</excludePackageNames>
Copy link
Member

Choose a reason for hiding this comment

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

This PR produces a change in behavior: With this PR applied, the generated Javadoc contains entries for com.google.common.base.internal, com.google.thirdparty.publicsuffix, and jdk. Perhaps we need the .* only when that exact package doesn't exist?

Maybe you can find a way that works, but it feels unfortunate to have to further hardcode which packages exist. I guess we may need to cross this bridge eventually, unless we can hope that a future change to the Maven Javadoc Plugin will undo this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, it looks like I can use the wildcard :* instead of .* which will exclude those exact packages, reference.
I will try test this later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, it looks like I can use the wildcard :* instead of .* which will exclude those exact packages, reference.
I will try test this later.

Please ignore this comment, i misread the documentation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cpovirk this change in behavior is fixed in #3478

@WilliamCollishaw
Copy link
Contributor Author

Butchered this branch, reopened new PR #3478

@WilliamCollishaw WilliamCollishaw deleted the Upgrade-maven-javadoc-plugin branch May 21, 2019 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants