-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 support #1227
Comments
Are you asking about including the Guice's To get Guice to work in Bazel, you can simply use the jar like some examples show:
You targets can then specify "@guice_library//jar" as a dependency to depend on this jar. You'll also need to include the other 3 .jar mentionned here: https://github.com/google/guice/tree/4.2.2/lib,
and the other 2 can be obtained in a similar way, or from bazel's "third_party" folder which provides a ton of
and then in your
Bazel documentation recommends using |
@Vincent-M Hi, thanks for addressing this. I found current bazel Guice import not simple is because other than importing the Guice core, bazel requires me to import additional dependencies manually. I tried to import Guice through Guice Parent, but this is a pom path rather than a jar import, which is hard to handle in bazel. A comprehensive maven jar route for Guice could be handy in my use case. |
@Vincent-M It turns out that Bazel has a semi-external tool that could help resolve this issue. Details can be found here: bazelbuild/bazel#7822 |
Could there be better support for bazel?
The text was updated successfully, but these errors were encountered: