Interface CreateLayerOptions

All Superinterfaces:
LayerOptions

public interface CreateLayerOptions extends LayerOptions
Layer creation options.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.gradle.api.file.ConfigurableFileCollection
    If set, all classes in the supplied jars will be included in the generated layer.
    org.gradle.api.provider.ListProperty<String>
    Module names to include in the package.
    org.gradle.api.provider.ListProperty<String>
    The list of packages to include in the layer.

    Methods inherited from interface org.graalvm.buildtools.gradle.tasks.LayerOptions

    getLayerName
  • Method Details

    • getPackages

      @Input @Optional org.gradle.api.provider.ListProperty<String> getPackages()
      The list of packages to include in the layer.
      Returns:
      the package list (can be empty)
    • getJars

      @Classpath @Optional org.gradle.api.file.ConfigurableFileCollection getJars()
      If set, all classes in the supplied jars will be included in the generated layer.
      Returns:
      the classpath to include
    • getModules

      @Input org.gradle.api.provider.ListProperty<String> getModules()
      Module names to include in the package. For a base layer, this should typically include "java.base".
      Returns:
      the list of modules to include in the layer