Top 4 Java Bazel Projects
-
I migrated a mid-size polyglot project from Makefiles to Bazel and C++ was a large component of the project.
Some obstacles:
1. Building with QT5 MOC & UI files. There is a great library[0] for it but it has hardcoded paths to the QT binaries and header files assuming a system-wide installation. I had to patch the rule to point to our QT location. Then it worked fine.
2. There is no rule to build a fully static library[1]. Since we were shipping a static library in our Makefile system, that was somewhat annoying.
3. We were using system links like `$PROJECT_ROOT/links/GCC/vX.Y.Z/ -> /opt/gcc/...` to point to all the build tools, but these didn't work in Bazel I think because it required absolute paths for any binaries it calls. We ended up putting them in a .bazelrc but we would need a different one for Windows and Linux.
4. Not good integration with IDEs
Ultimately we did not keep using Bazel because we were building Python binaries and py_binary was too slow on Windows. And we didn't have enough time to write a PyInstaller rule.
-
Currently migrating to Bazel + bazel remote execution via Bazel buildfarm. Bazel has native support for build clusters.
-
Scout APM
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
-
example-bazel-monorepo
🌿💚 Example Bazel-ified monorepo, supporting Golang, Java, Python, Scala, and Typescript
-
android-build-eval
This project includes Uber-agnostic auto-generated project(s) with a comparable complexity to existing Uber Production mobile apps. These are buildable on Buck, Bazel and Gradle- therefore enable build time benchmarking.
Java Bazel related posts
- Is there any better options for building kotlin then gradle?
- Rust starlark interpreters purpose?
- Distroless Alpine
- Tensorflow Compile Runs For A Long Time
- Having trouble installing bazel on Mac OS
- Google Is 2B Lines of Code–and It's All in One Place
- Bazel in Vulkan Projects. Part 1 — Environment Setup
Index
What are some of the best open-source Bazel projects in Java? This list will help you:
Project | Stars | |
---|---|---|
1 | Bazel | 18,901 |
2 | bazel-buildfarm | 484 |
3 | example-bazel-monorepo | 247 |
4 | android-build-eval | 81 |
Are you hiring? Post a new remote job listing for free.