Class JarTreeShakeBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.SimpleBuildItem
io.quarkus.deployment.pkg.builditem.JarTreeShakeBuildItem
public final class JarTreeShakeBuildItem
extends io.quarkus.builder.item.SimpleBuildItem
Build item that holds the results of dependency usage analysis for tree shaking.
Contains whether class-level tree shaking was performed, the set of reachable class names (dot-separated),
and the sorted list of removed class resource paths per dependency.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputePedigree(io.quarkus.maven.dependency.ArtifactKey depKey) Computes a pedigree string for the given dependency describing what was removed.boolean
-
Constructor Details
-
JarTreeShakeBuildItem
-
-
Method Details
-
isClassesShaken
public boolean isClassesShaken() -
getReachableClassNames
- Returns:
- dot-separated class names of all reachable classes
-
getRemovedClasses
- Returns:
- sorted list of removed class resource paths (e.g. "com/example/Foo.class") per dependency
-
computePedigree
Computes a pedigree string for the given dependency describing what was removed.- Returns:
- pedigree text or
nullif nothing was removed
-