-
Notifications
You must be signed in to change notification settings - Fork 15.9k
[bazel] Move Java runtime/toolchains into //java #7190
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
Conversation
|
/cc @ittaiz |
|
Nice! Do you think the same can be done for python? |
112ee78 to
64c3d43
Compare
|
I haven't looked into doing the same for other languages yet. Will do when this lands. |
|
Thanks! |
|
@rafi-kamal Thanks! Looks like there were infra issues yesterday. Maybe re-run the tests? |
This change moves `java_library` targets from the top-level BUILD file
into `//java/{core,lite,util}` and declares `alias` targets to point to
their new locations (hence, this is not a breaking change).
This will allow users that don't use Java to stop depending on
`@rules_java` (e.g. as requested in
bazel-contrib/rules_scala#989 (comment)).
Note that there is no intention to deprecate + remove the top-level
targets in the foreseeable future.
|
@Yannic can you please add the build files to java_EXTRA_DIST in https://github.com/protocolbuffers/protobuf/blob/master/Makefile.am? The PHP and Python failures are unrelated. |
|
@rafi-kamal Thanks, done! |
Java-specific targets were moved into //java in protocolbuffers/protobuf#7190
Java-specific targets were moved into //java in protocolbuffers/protobuf#7190
Removing language-specific targets from the top-level BUILD file will allow users to keep their workspaces smaller and easier to maintain by not depending on language rules they don't need. Similar work was done for Java in protocolbuffers#7190.
Removing language-specific targets from the top-level BUILD file will allow users to keep their workspaces smaller and easier to maintain by not depending on language rules they don't need. Similar work was done for Java in #7190.
Removing language-specific targets from the top-level BUILD file will allow users to keep their workspaces smaller and easier to maintain by not depending on language rules they don't need. Similar work was done for Java in protocolbuffers#7190.
This change moves
java_librarytargets from the top-level BUILD fileinto
//java/{core,lite,util}and declaresaliastargets to point totheir new locations (hence, this is not a breaking change).
This will allow users that don't use Java to stop depending on
@rules_java(e.g. as requested inbazel-contrib/rules_scala#989 (comment)).
Note that there is no intention to deprecate + remove the top-level
targets in the foreseeable future.