Package io.micronaut.gradle.graalvm
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(org.gradle.api.Project project) 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.
-
Field Details
-
RICH_OUTPUT_PROPERTY
- See Also:
-
-
Constructor Details
-
MicronautGraalPlugin
public MicronautGraalPlugin()
-
-
Method Details
-
apply
public void apply(org.gradle.api.Project project) - Specified by:
apply
in interfaceorg.gradle.api.Plugin<org.gradle.api.Project>
-
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
-