Class DefaultGraalVmExtension
- java.lang.Object
-
- org.graalvm.buildtools.gradle.internal.DefaultGraalVmExtension
-
- All Implemented Interfaces:
GraalVMExtension
public abstract class DefaultGraalVmExtension extends java.lang.Object implements GraalVMExtension
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.graalvm.buildtools.gradle.dsl.GraalVMExtension
GraalVMExtension.TestBinaryConfig
-
-
Constructor Summary
Constructors Constructor Description DefaultGraalVmExtension(org.gradle.api.NamedDomainObjectContainer<NativeImageOptions> nativeImages, NativeImagePlugin plugin, org.gradle.api.Project project)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidagent(org.gradle.api.Action<? super AgentOptions> spec)voidbinaries(org.gradle.api.Action<? super org.gradle.api.NamedDomainObjectContainer<NativeImageOptions>> spec)Configures the native image options.org.gradle.api.NamedDomainObjectContainer<NativeImageOptions>getBinaries()Returns the native image configurations used to generate images.voidregisterTestBinary(java.lang.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 Detail
-
DefaultGraalVmExtension
@Inject public DefaultGraalVmExtension(org.gradle.api.NamedDomainObjectContainer<NativeImageOptions> nativeImages, NativeImagePlugin plugin, org.gradle.api.Project project)
-
-
Method Detail
-
getBinaries
public org.gradle.api.NamedDomainObjectContainer<NativeImageOptions> getBinaries()
Description copied from interface:GraalVMExtensionReturns 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:
getBinariesin interfaceGraalVMExtension- Returns:
- configuration for binaries
-
agent
public void agent(org.gradle.api.Action<? super AgentOptions> spec)
- Specified by:
agentin interfaceGraalVMExtension
-
binaries
public void binaries(org.gradle.api.Action<? super org.gradle.api.NamedDomainObjectContainer<NativeImageOptions>> spec)
Description copied from interface:GraalVMExtensionConfigures the native image options.- Specified by:
binariesin interfaceGraalVMExtension- Parameters:
spec- specification for binary
-
registerTestBinary
public void registerTestBinary(java.lang.String name, org.gradle.api.Action<? super GraalVMExtension.TestBinaryConfig> spec)Description copied from interface:GraalVMExtensionRegisters a new native image binary with testing support.- Specified by:
registerTestBinaryin interfaceGraalVMExtension- Parameters:
name- the name of the binaryspec- the test image configuration
-
-