Unable to build: Quarkus ChainBuildException due to JFR dependency
Describe the bug
In Quarkus version - 3.30.2
Ran command - ./gradlew clean build -x test
Logs-
Task :quarkusAppPartsBuild FAILED
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':quarkusAppPartsBuild'.
There was a failure while executing work items A failure occurred while executing io.quarkus.gradle.tasks.worker.BuildWorker > io.quarkus.builder.ChainBuildException: Cycle detected: io.quarkus.jfr.deployment.JfrProcessor#registerVersion produced class io.quarkus.arc.deployment.AdditionalBeanBuildItem to io.quarkus.arc.deployment.ArcProcessor#initialize produced class io.quarkus.arc.deployment.ContextRegistrationPhaseBuildItem to io.quarkus.arc.deployment.ArcProcessor#registerBeans produced class io.quarkus.arc.deployment.BeanDiscoveryFinishedBuildItem to io.quarkus.grpc.deployment.GrpcClientProcessor#discoverInjectedClients produced class io.quarkus.deployment.builditem.FeatureBuildItem to io.quarkus.jfr.deployment.JfrProcessor#registerVersion
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
-
Create a new Quarkus project (Gradle or Maven), or use an existing one.
-
Add the following extensions to the project (if not already present):
quarkus-grpc-client
quarkus-jfr
Build the application:
./gradlew build
The build fails with the following exception:
Execution failed for task ':quarkusAppPartsBuild'.
io.quarkus.builder.ChainBuildException: Cycle detected:
JfrProcessor#registerVersion → ArcProcessor → GrpcClientProcessor → JfrProcessor#registerVersion
Output of uname -a or ver
Darwin Priyas-MacBook-Pro.local 25.1.0 Darwin Kernel Version 25.1.0: Mon Oct 20 19:33:36 PDT 2025; root:xnu-12377.41.6~2/RELEASE_ARM64_T6030 arm64
Output of java -version
OpenJDK Runtime Environment Corretto-21.0.8.9.1 (build 21.0.8+9-LTS) OpenJDK 64-Bit Server VM Corretto-21.0.8.9.1 (build 21.0.8+9-LTS, mixed mode, sharing)
Quarkus version or git rev
Quarkus version - 3.30.2
Build tool (ie. output of mvnw --version or gradlew --version)
Gradle 8.8
Additional information
No response
/cc @alesj (grpc), @cescoffier (grpc)
Please provide a minimal reproducer project that we can use to see this problem in action
Never mind my comment above, I was able to reproduce this. https://github.com/quarkusio/quarkus/pull/51524 fixes the problem