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 TypeMethodDescriptionvoidagent(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>Returns the native image configurations used to generate images.voidregisterTestBinary(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, waitMethods 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: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
- 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(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
-