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 void
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>
getBinaries()
Returns the native image configurations used to generate images.void
registerTestBinary(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: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
-
agent
public void agent(org.gradle.api.Action<? super AgentOptions> spec)
- 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
-
registerTestBinary
public void registerTestBinary(java.lang.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
spec
- the test image configuration
-
-