Package io.micronaut.build.graalvm
Interface NativeImagePropertiesExtension
public interface NativeImagePropertiesExtension
Lets the user configure generation of a native-image.properties
file.
-
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.api.provider.Property<String>The content of the native-image.properties file to generate.org.gradle.api.provider.Property<Boolean>Determines if native-image.properties file should be generated.org.gradle.api.provider.ListProperty<String>The list of features to enableorg.gradle.api.provider.ListProperty<String>The list of classes/packages to initialize at build timeorg.gradle.api.provider.ListProperty<String>The list of classes/packages to initialize at runtime
-
Method Details
-
getEnabled
org.gradle.api.provider.Property<Boolean> getEnabled()Determines if native-image.properties file should be generated.- Returns:
- true if the file should be generated
-
getContents
org.gradle.api.provider.Property<String> getContents()The content of the native-image.properties file to generate. This cannot be used if any of the other convenience properties are used.- Returns:
- the contents of the native image properties file
-
getInitializeAtRuntime
org.gradle.api.provider.ListProperty<String> getInitializeAtRuntime()The list of classes/packages to initialize at runtime- Returns:
- the list of classes/packages to initialize at runtime
-
getInitializeAtBuildtime
org.gradle.api.provider.ListProperty<String> getInitializeAtBuildtime()The list of classes/packages to initialize at build time- Returns:
- the list of classes/packages to initialize at build time
-
getFeatures
org.gradle.api.provider.ListProperty<String> getFeatures()The list of features to enable- Returns:
- the list of features
-