Skip to content

Remove hardcoded javadocopts#1212

Merged
shs96c merged 8 commits into
bazel-contrib:masterfrom
vinnybod:vinnybod/remove-hardcoded-javadocopts
Sep 7, 2024
Merged

Remove hardcoded javadocopts#1212
shs96c merged 8 commits into
bazel-contrib:masterfrom
vinnybod:vinnybod/remove-hardcoded-javadocopts

Conversation

@vinnybod
Copy link
Copy Markdown
Contributor

@vinnybod vinnybod commented Aug 6, 2024

I have a situation where I need to disable -use, but it was hardcoded into JavadocJarMaker.java.

I changed the way javadoc options work by making the javadocopts attribute completely replace the default options instead of adding to them.

This is not completely backwards compatible. I thought about making it backwards compatible by adding some other flag like override_default_javadocopts, but wasn't sure how people would feel about adding additional attributes.

Open to changing this implementation or closing the PR if its not valuable enough.

Note: This is a copy of #1192 . I had to reopen the PR from a different Github fork because of new constraints in the previous one.

@jin
Copy link
Copy Markdown
Collaborator

jin commented Aug 7, 2024

I think this is reasonable for folks to override the default instead of the rule always adding hardcoded defaults. @shs96c wdyt?

Copy link
Copy Markdown
Collaborator

@shs96c shs96c left a comment

Choose a reason for hiding this comment

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

Thank you for your patience with this review.

One small change requested, but LGTM. Could you also please run ./scripts/generate_docs.sh since you're updating the stardoc too.

Comment thread private/rules/javadoc.bzl Outdated
Comment thread private/rules/javadoc.bzl Outdated
@vinnybod
Copy link
Copy Markdown
Contributor Author

After making the suggested changes and merging master, some tests are failing. will have to look into it later

@shs96c
Copy link
Copy Markdown
Collaborator

shs96c commented Sep 5, 2024

@vinnybod, please tag me when you'd like me to have another look at this.

@vinnybod
Copy link
Copy Markdown
Contributor Author

vinnybod commented Sep 5, 2024

@shs96c all tests are now passing, this is ready for review

@shs96c shs96c merged commit 61817e0 into bazel-contrib:master Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants