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 voidbinaries(org.gradle.api.Action<? super org.gradle.api.NamedDomainObjectContainer<NativeImageOptions>> spec)Configures the native image options.java.util.Map<java.lang.String,org.gradle.api.provider.Provider<java.lang.Boolean>>getAgentProperties()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
getGeneratedResourcesDirectory, getTestSupport
-
-
-
-
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
-
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
-
getAgentProperties
public java.util.Map<java.lang.String,org.gradle.api.provider.Provider<java.lang.Boolean>> getAgentProperties()
-
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 interfaceGraalVMExtensionspec- the test image configuration
-
-