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
Make Java source root configurable #6353
Comments
@lberki pointed out offline that the configuration for this would ideally be per- |
Yeah... I'm not sure we should have a knob for this in the first place, and I'd rather have a simple and almost correct fix (i.e. the above two commits) than a complex and almost correct one. |
This scratches my itch, so it is fine with me if this is not tunable. |
Not in the short term -- I'd love to, but there probably won't be enough time before next ~June. It's not a trivial change... |
It is fine to have a default per-WORKSPACE, but please consider that many projects are put together under the same workspace, some even from different companies, so it should at least be configurable per-BUILD file. It's fine to have standards, but the configuration should fit the status-quo, not viceversa. |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 3 years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team ( |
Bazel hard-codes some conventions about Java source roots:
bazel/src/main/java/com/google/devtools/build/lib/rules/java/JavaUtil.java
Line 79 in 3aedb2f
This is used e.g. to infer
java_test.test_class
and to relativizejava_library.resources
.We should make the source root configurable to support other repository layouts.
The text was updated successfully, but these errors were encountered: