Class NativeImageResourcePatternsBuildItem

java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.deployment.builditem.nativeimage.NativeImageResourcePatternsBuildItem

public final class NativeImageResourcePatternsBuildItem extends io.quarkus.builder.item.MultiBuildItem
A build item that indicates that a set of resource paths defined by globs should be included in the native image.

Globs passed to the includeGlob*() methods of the NativeImageResourcePatternsBuildItem.Builder are passed directly to the native image builder. See

invalid reference
NativeConfig.ResourcesConfig#includes
for the supported glob syntax.

The globs are passed to the native image builder using reachability-metadata.json (conforming to reachability-metadata-schema-v1.2.0.json).

Related build items:

  • Method Details

    • getIncludeGlobs

      public List<String> getIncludeGlobs()
    • getModule

      public String getModule()
      This is useful also for resources from within the JDK itself. Think e.g. some i18n files.
      Returns:
      The Java module containing these resources, or null if on the unnamed module/classpath.
    • builder