rules_quarkus — Bazel rules for Quarkus framework with build-time augmentation #28843
kinhluan
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone 👋
I wanted to share a project I've been working on: rules_quarkus — Bazel rules for building Quarkus applications.
The problem
Quarkus does heavy build-time processing (called "augmentation") — CDI bean discovery, REST endpoint generation, config injection, etc. This has traditionally been tightly coupled to Maven/Gradle plugins,
making it difficult to use Quarkus in Bazel monorepos.
The approach
Instead of shelling out to Maven,
rules_quarkuscalls theQuarkusBootstrapAPI directly within a Bazel action. It constructs theApplicationModelfrom Bazel's dependency graph, handling theseparation between runtime and deployment artifacts that Quarkus requires.
The trickiest part was ClassLoader isolation — Quarkus augmentation needs its own classloader hierarchy to avoid conflicts with the build tool's classes.
Quick example
Stack
Would love feedback from the community, especially anyone who has tried (or wanted to try) Quarkus with Bazel.
Repo: https://github.com/kinhluan/rules_quarkus
Beta Was this translation helpful? Give feedback.
All reactions