Package io.quarkus.builder
Class BuildStepPrioritizer
java.lang.Object
io.quarkus.builder.BuildStepPrioritizer
Ensures a chosen build item is produced early in the Quarkus build by making its producing step
a dependency of every other step that does not already depend on it (directly or transitively).
This is useful for items that need to be available for most build steps (for example logging setup).
-
Method Summary
Modifier and TypeMethodDescription(package private) static voidprioritize(Set<ItemId> itemsIdsToPrioritize, Set<BuildStepBuilder> includedSteps, Map<BuildStepBuilder, Set<Produce>> dependencies) Prioritizes the given build item by making its producing step a dependency of all other build steps that are not already in that producing step's dependency chain.
-
Method Details
-
prioritize
static void prioritize(Set<ItemId> itemsIdsToPrioritize, Set<BuildStepBuilder> includedSteps, Map<BuildStepBuilder, Set<Produce>> dependencies) Prioritizes the given build item by making its producing step a dependency of all other build steps that are not already in that producing step's dependency chain.- Parameters:
itemsIdsToPrioritize- the set of build items IDs to prioritizeincludedSteps- the set of build steps included in the build chaindependencies- a map from each build step to the set ofProduceitems it depends on
-