Class DefaultGraalVmExtension

    • 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 interface GraalVMExtension
        Returns:
        configuration for binaries
      • 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 interface GraalVMExtension
        Parameters:
        spec - specification for binary