Interface GraalVMExtension

  • All Known Implementing Classes:
    DefaultGraalVmExtension

    public interface GraalVMExtension
    This is the entry point for configuring GraalVM relative features provided by this plugin.
    • Method Detail

      • getTestSupport

        org.gradle.api.provider.Property<java.lang.Boolean> getTestSupport()
        Determines if test support is active. This can be used to disable automatic test support, especially in cases where the test framework doesn't allow testing within a native image.
      • agent

        void agent​(org.gradle.api.Action<? super AgentOptions> spec)
      • getGeneratedResourcesDirectory

        org.gradle.api.file.DirectoryProperty getGeneratedResourcesDirectory()
      • getBinaries

        org.gradle.api.NamedDomainObjectContainer<NativeImageOptions> getBinaries()
        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.
      • binaries

        void binaries​(org.gradle.api.Action<? super org.gradle.api.NamedDomainObjectContainer<NativeImageOptions>> spec)
        Configures the native image options.
      • registerTestBinary

        void registerTestBinary​(java.lang.String name,
                                org.gradle.api.Action<? super GraalVMExtension.TestBinaryConfig> spec)
        Registers a new native image binary with testing support.
        Parameters:
        spec - the test image configuration
      • getToolchainDetection

        org.gradle.api.provider.Property<java.lang.Boolean> getToolchainDetection()
        Property driving the detection of toolchains which support building native images. The default is true.
      • getUseArgFile

        org.gradle.api.provider.Property<java.lang.Boolean> getUseArgFile()
        Property driving the use of @-arg files when invoking native image. This is enabled by default on Windows. For older native-image versions, this needs to be disabled.
        Returns:
        the argument file property