I'm looking to create a Java monorepo-style project with Bazel as the build system and maven jars used throughout, but I'm having a hard time finding any good example projects.
I keep hitting questions like:* How many WORKSPACE files do I use? Just one or one under every project? (I think the answer is just one)
* What is the best way to manage dependencies? If I need to use apache httpclient for example, that maven jar has 5 dependencies of which some have their own dependencies. Where do these go? A global workspace file? In separate workspace files? In the BUILD files? How do you manage these and their versions with the least amount of manual effort?
I feel like a solid example would answer a lot of these questions.Does anyone know of any good examples?I'm thinking about creating a small monorepo with 2-3 simple java projects and asking for help with that.Thanks!-Jason
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/f3689976-af83-49d9-b516-75596d28bae7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
warning: unknown enum constant ThreadingBehavior.SAFE
reason: class file for org.apache.http.annotation.ThreadingBehavior not found
java/com/example/library/snitch/DeadMansSnitch.java:45: error: cannot access AbstractHttpMessage
client.execute(request);
^
class file for org.apache.http.message.AbstractHttpMessage not found
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
I'm looking to create a Java monorepo-style project with Bazel as the build system and maven jars used throughout, but I'm having a hard time finding any good example projects.
I keep hitting questions like:* How many WORKSPACE files do I use? Just one or one under every project? (I think the answer is just one)
* What is the best way to manage dependencies? If I need to use apache httpclient for example, that maven jar has 5 dependencies of which some have their own dependencies. Where do these go? A global workspace file? In separate workspace files? In the BUILD files? How do you manage these and their versions with the least amount of manual effort?
I feel like a solid example would answer a lot of these questions.
Does anyone know of any good examples?I'm thinking about creating a small monorepo with 2-3 simple java projects and asking for help with that.Thanks!
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CA%2BndrjoGgCwqsY9snhXv%3DW30w91bKKB5032psDvL-4EGc8%2BrtA%40mail.gmail.com.