-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
[bazel] Move Java runtime/toolchains into //java #7190
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 bazelbuild/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_library
targets from the top-level BUILD fileinto
//java/{core,lite,util}
and declaresalias
targets 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 inbazelbuild/rules_scala#989 (comment)).
Note that there is no intention to deprecate + remove the top-level
targets in the foreseeable future.