package io.quarkus.deployment.steps;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.inject.Inject;

import io.quarkus.deployment.Capabilities;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.CapabilityBuildItem;

public class CapabilityAggregationStep {

    @Inject
    BuildProducer<Capabilities> producer;

    @BuildStep
    public void build(List<CapabilityBuildItem> capabilitites) throws Exception {
        Set<String> present = new HashSet<>();
        for (CapabilityBuildItem i : capabilitites) {
            present.add(i.getName());
        }

        producer.produce(new Capabilities(present));

    }
}

@@ -510,25 +510,24 @@
 %3E capabiliti
-t
 es) throws E
@@ -617,17 +617,26 @@
 ildItem 
-i
+capability
  : capab
@@ -640,17 +640,16 @@
 pabiliti
-t
 es) %7B%0A  
@@ -670,17 +670,26 @@
 ent.add(
-i
+capability
 .getName

fix typo in CapabilityAggregationStep