Class BuildStepPrioritizer

java.lang.Object
io.quarkus.builder.BuildStepPrioritizer

final class BuildStepPrioritizer extends Object
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 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 prioritize
      includedSteps - the set of build steps included in the build chain
      dependencies - a map from each build step to the set of Produce items it depends on