Skip to content

Commit

Permalink
Removing deprecated BuildStep.applicationArchiveMarkers()
Browse files Browse the repository at this point in the history
  • Loading branch information
aloubyansky committed May 5, 2021
1 parent adc3678 commit 067d7f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
import io.quarkus.deployment.annotations.ProduceWeak;
import io.quarkus.deployment.annotations.Record;
import io.quarkus.deployment.annotations.Weak;
import io.quarkus.deployment.builditem.AdditionalApplicationArchiveMarkerBuildItem;
import io.quarkus.deployment.builditem.BootstrapConfigSetupCompleteBuildItem;
import io.quarkus.deployment.builditem.BytecodeRecorderObjectLoaderBuildItem;
import io.quarkus.deployment.builditem.CapabilityBuildItem;
Expand Down Expand Up @@ -488,7 +487,6 @@ private static Consumer<BuildChainBuilder> loadStepsFromClass(Class<?> clazz,
method.setAccessible(true);
}
final BuildStep buildStep = method.getAnnotation(BuildStep.class);
final String[] archiveMarkers = buildStep.applicationArchiveMarkers();
final String[] capabilities = buildStep.providesCapabilities();
final Class<? extends BooleanSupplier>[] onlyIf = buildStep.onlyIf();
final Class<? extends BooleanSupplier>[] onlyIfNot = buildStep.onlyIfNot();
Expand Down Expand Up @@ -523,13 +521,6 @@ private static Consumer<BuildChainBuilder> loadStepsFromClass(Class<?> clazz,
}
final BooleanSupplier finalAddStep = addStep;

if (archiveMarkers.length > 0) {
chainConfig = chainConfig.andThen(bcb -> bcb.addBuildStep(bc -> {
for (String marker : archiveMarkers) {
bc.produce(new AdditionalApplicationArchiveMarkerBuildItem(marker));
}
}).produces(AdditionalApplicationArchiveMarkerBuildItem.class).buildIf(finalAddStep));
}
if (capabilities.length > 0) {
chainConfig = chainConfig.andThen(bcb -> bcb.addBuildStep(bc -> {
for (String capability : capabilities) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,6 @@
@Deprecated
String[] providesCapabilities() default {};

/**
* Indicates that the provided file names should be considered to be application index markers.
*
* If these are present in library on the class path then the library will be indexed, and this index will be
* used when evaluating application components.
*
* This should not be used, {@link io.quarkus.deployment.builditem.AdditionalApplicationArchiveMarkerBuildItem}
* should just be produced directly instead.
*
* This method will be removed at some point post Quarkus 1.1.
*/
@Deprecated
String[] applicationArchiveMarkers() default {};

/**
* Only include this build step if the given supplier class(es) return {@code true}.
*
Expand Down

0 comments on commit 067d7f0

Please sign in to comment.