Class MicronautGraalPlugin

java.lang.Object
io.micronaut.gradle.graalvm.MicronautGraalPlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public class MicronautGraalPlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
Support for building GraalVM native images.
Since:
1.0.0
Author:
graemerocher, Iván López
  • Field Details

  • Constructor Details

    • MicronautGraalPlugin

      public MicronautGraalPlugin()
  • Method Details

    • apply

      public void apply(org.gradle.api.Project project)
      Specified by:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>
    • getGraalVMBuilderExports

      public static List<String> getGraalVMBuilderExports()
    • applyGraalVMBuilderExportsOn

      public static void applyGraalVMBuilderExportsOn(org.graalvm.buildtools.gradle.dsl.NativeImageOptions options)
      This method isn't used directly in the plugin, but provided as a convenience for users in case a Micronaut module they are using is still, for whatever reason, using internal GraalVM APIs. This shouldn't be the case since Micronaut 4 but there may be community modules which are still doing this. In this case the user can directly call this method to add the required exports.
      Parameters:
      options - the native binary on which to add options