Skip to content

Commit e3c25db

Browse files
committed
Fix Build Cycle error when Scheduler and JFR are used in the same project
- Follows up #50000
1 parent abc3d74 commit e3c25db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

extensions/scheduler/deployment/src/main/java/io/quarkus/scheduler/deployment/SchedulerProcessor.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ public List<UnremovableBeanBuildItem> unremovableBeans() {
366366

367367
@BuildStep
368368
@Record(RUNTIME_INIT)
369-
public FeatureBuildItem build(
369+
public void build(
370370
SchedulerRecorder recorder,
371371
BuildProducer<SyntheticBeanBuildItem> syntheticBeans,
372372
List<ScheduledBusinessMethodItem> scheduledMethods,
@@ -415,7 +415,10 @@ public String apply(String name) {
415415
.supplier(recorder.createContext(scheduledMetadata, !schedulerForcedStartItems.isEmpty(),
416416
discoveredImplementations.getAutoImplementation()))
417417
.done());
418+
}
418419

420+
@BuildStep
421+
FeatureBuildItem feature() {
419422
return new FeatureBuildItem(Feature.SCHEDULER);
420423
}
421424

0 commit comments

Comments
 (0)