Class DefaultGraalVmExtension
java.lang.Object
org.graalvm.buildtools.gradle.internal.DefaultGraalVmExtension
- All Implemented Interfaces:
GraalVMExtension
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.graalvm.buildtools.gradle.dsl.GraalVMExtension
GraalVMExtension.TestBinaryConfig
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultGraalVmExtension
(org.gradle.api.NamedDomainObjectContainer<NativeImageOptions> nativeImages, NativeImagePlugin plugin, org.gradle.api.Project project) -
Method Summary
Modifier and TypeMethodDescriptionvoid
agent
(org.gradle.api.Action<? super AgentOptions> spec) void
binaries
(org.gradle.api.Action<? super org.gradle.api.NamedDomainObjectContainer<NativeImageOptions>> spec) Configures the native image options.org.gradle.api.NamedDomainObjectContainer<NativeImageOptions>
Returns the native image configurations used to generate images.void
registerTestBinary
(String name, org.gradle.api.Action<? super GraalVMExtension.TestBinaryConfig> spec) Registers a new native image binary with testing support.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graalvm.buildtools.gradle.dsl.GraalVMExtension
getAgent, getGeneratedResourcesDirectory, getTestSupport, getToolchainDetection, getUseArgFile
-
Constructor Details
-
DefaultGraalVmExtension
@Inject public DefaultGraalVmExtension(org.gradle.api.NamedDomainObjectContainer<NativeImageOptions> nativeImages, NativeImagePlugin plugin, org.gradle.api.Project project)
-
-
Method Details
-
getBinaries
Description copied from interface:GraalVMExtension
Returns the native image configurations used to generate images. By default, this plugin creates two images, one called "main" for the main application and another one called "test" for tests.- Specified by:
getBinaries
in interfaceGraalVMExtension
- Returns:
- configuration for binaries
-
agent
- Specified by:
agent
in interfaceGraalVMExtension
-
binaries
public void binaries(org.gradle.api.Action<? super org.gradle.api.NamedDomainObjectContainer<NativeImageOptions>> spec) Description copied from interface:GraalVMExtension
Configures the native image options.- Specified by:
binaries
in interfaceGraalVMExtension
- Parameters:
spec
- specification for binary
-
registerTestBinary
public void registerTestBinary(String name, org.gradle.api.Action<? super GraalVMExtension.TestBinaryConfig> spec) Description copied from interface:GraalVMExtension
Registers a new native image binary with testing support.- Specified by:
registerTestBinary
in interfaceGraalVMExtension
- Parameters:
name
- the name of the binaryspec
- the test image configuration
-