Interface CreateLayerOptions
- All Superinterfaces:
LayerOptions
Layer creation options.
-
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.api.file.ConfigurableFileCollection
getJars()
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
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
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
-