diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/SetClassPathSystemPropBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/SetClassPathSystemPropBuildItem.java index 7461e22f7a73f..e22770f0fc4ee 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/SetClassPathSystemPropBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/SetClassPathSystemPropBuildItem.java @@ -7,6 +7,9 @@ * This system property is used in rare by libraries (Truffle for example) to create their own ClassLoaders. * The value of the system property is simply best effort, as there is no way to faithfully represent * the Quarkus ClassLoader hierarchies in a system property value. + * + * @deprecated This was initially added to support Truffle, but it is no longer needed so the build item should not be used */ +@Deprecated(forRemoval = true) public final class SetClassPathSystemPropBuildItem extends MultiBuildItem { } diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/ClassPathSystemPropBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/ClassPathSystemPropBuildStep.java index dccb19214baec..d34385c4ac233 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/ClassPathSystemPropBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/ClassPathSystemPropBuildStep.java @@ -6,7 +6,6 @@ import java.util.List; import java.util.stream.Stream; -import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; @@ -15,17 +14,9 @@ import io.quarkus.maven.dependency.ResolvedDependency; import io.quarkus.runtime.ClassPathSystemPropertyRecorder; +@SuppressWarnings("removal") public class ClassPathSystemPropBuildStep { - @BuildStep - public void produce(BuildProducer producer, CurateOutcomeBuildItem curateOutcome) { - boolean truffleUsed = curateOutcome.getApplicationModel().getDependencies().stream() - .anyMatch(d -> d.getGroupId().equals("org.graalvm.polyglot")); - if (truffleUsed) { - producer.produce(new SetClassPathSystemPropBuildItem()); - } - } - @BuildStep @Record(ExecutionTime.STATIC_INIT) public void set(List setCPItems,