public class SpringGraalNativeExtension
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.gradle.api.provider.Property<java.lang.String> |
download |
protected org.gradle.api.provider.Property<java.lang.String> |
dumpConfig |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
enableAllSecurityServices |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
enableHttp |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
enableHttps |
protected org.gradle.api.provider.ListProperty<java.lang.String> |
enableUrlProtocols |
protected org.gradle.api.provider.ListProperty<java.lang.String> |
initializeAtBuildTime |
protected org.gradle.api.provider.Property<java.lang.String> |
javaVersion |
protected org.gradle.api.provider.Property<java.lang.String> |
mainClassName |
protected org.gradle.api.provider.Property<java.lang.String> |
maxHeapSize |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
printAnalysisCallTree |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
removeJmxSupport |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
removeSaturatedTypeFlows |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
removeSpelSupport |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
removeUnusedAutoConfig |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
removeXmlSupport |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
removeYamlSupport |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
reportExceptionStackTraces |
protected org.gradle.api.provider.Property<java.lang.String> |
springNativeMode |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
springNativeVerbose |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
staticallyLinked |
protected org.gradle.api.provider.Property<java.lang.String> |
toolVersion |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
traceClassInitialization |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
verbose |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
verify |
protected org.gradle.api.provider.Property<java.lang.Boolean> |
warnMissingSelectorHints |
| Constructor and Description |
|---|
SpringGraalNativeExtension(org.gradle.api.model.ObjectFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDownload()
Returns when to download GraalVM Community Edition.
|
java.lang.String |
getDumpConfig()
Returns the file path to dump the configuration to.
|
boolean |
getEnableAllSecurityServices()
Returns
true if security services are enabled for HTTPS and crypto applications. |
boolean |
getEnableHttp()
Returns
true if HTTP support is enabled. |
boolean |
getEnableHttps()
Returns
true if HTTPS support is enabled. |
java.util.List<java.lang.String> |
getEnableUrlProtocols()
Returns a list of URL protocols to be enabled.
|
java.util.List<java.lang.String> |
getInitializeAtBuildTime()
Returns the classes to be initialized by default at build time.
|
java.lang.String |
getJavaVersion()
Returns the version of JDK to be downloaded with GraalVM Community Edition.
|
java.lang.String |
getMainClassName()
Returns the fully qualified name of the Java class that contains the
main() method as the entry point of the executable. |
java.lang.String |
getMaxHeapSize()
Returns the maximum Java heap size allowed for building the native image.
|
boolean |
getPrintAnalysisCallTree()
Returns
true to help to find what classes, methods, and fields are used and why. |
boolean |
getRemoveJmxSupport()
Returns
true if JMX support is removed from Spring Boot, enabling faster compilation and smaller executables. |
boolean |
getRemoveSaturatedTypeFlows()
Returns
true if build time is reduced and build memory consumption is decreased, especially for big projects. |
boolean |
getRemoveSpelSupport()
Returns
true if SpEL support is removed from Spring Boot, enabling faster compilation and smaller executables. |
boolean |
getRemoveUnusedAutoConfig()
Returns
true if the removal of unused configurations is disabled. |
boolean |
getRemoveXmlSupport()
Returns
true if XML support is removed from Spring Boot, enabling faster compilation and smaller executables. |
boolean |
getRemoveYamlSupport()
Returns
true if Yaml support is removed from Spring Boot, enabling faster compilation and smaller executables. |
boolean |
getReportExceptionStackTraces()
Returns
true if more details are provided should something goes wrong. |
java.lang.String |
getSpringNativeMode()
Returns the mode that switches how much configuration the feature actually provides to native-image.
|
boolean |
getSpringNativeVerbose()
Returns
true if a lot of information about the feature behavior outputs is enabled as it processes auto-configuration and chooses which to include. |
boolean |
getStaticallyLinked()
Returns
true if a statically linked executable is to be built which is useful to deploy on a FROM scratch Docker image. |
java.lang.String |
getToolVersion()
Returns the version of GraalVM Community Edition to download.
|
boolean |
getTraceClassInitialization()
Returns
true if useful information to debug class initialization issues is provided. |
boolean |
getVerbose()
Returns
true if image building output is more verbose. |
boolean |
getVerify()
Returns
true if the verifier mode is switched on. |
boolean |
getWarnMissingSelectorHints()
Returns
true if a hard error for missing hints is switched to a warning. |
void |
setDownload(java.lang.String download)
Specifies when to download GraalVM Community Edition.
|
void |
setDumpConfig(java.lang.String dumpConfig)
Sets the file path to dump the configuration to.
|
void |
setEnableAllSecurityServices(boolean enableAllSecurityServices)
Sets to
true if security services are enabled for HTTPS and crypto applications. |
void |
setEnableHttp(boolean enableHttp)
Sets to
true if HTTP support is enabled. |
void |
setEnableHttps(boolean enableHttps)
Sets to
true if HTTPS support is enabled. |
void |
setEnableUrlProtocols(java.util.List<java.lang.String> enableUrlProtocols)
Specifies a list of URL protocols to be enabled.
|
void |
setInitializeAtBuildTime(java.util.List<java.lang.String> initializeAtBuildTime)
Sets the classes to be initialized by default at build time.
|
void |
setJavaVersion(java.lang.String javaVersion)
Sets the version of JDK to be downloaded with GraalVM Community Edition.
|
void |
setMainClassName(java.lang.String mainClassName)
Sets the fully qualified name of the Java class that contains the
main() method as the entry point of the executable. |
void |
setMaxHeapSize(java.lang.String maxHeapSize)
Sets the maximum Java heap size allowed for building the native image.
|
void |
setPrintAnalysisCallTree(boolean printAnalysisCallTree)
Sets to
true to help to find what classes, methods, and fields are used and why. |
void |
setRemoveJmxSupport(boolean removeJmxSupport)
Sets to
true if JMX support is removed from Spring Boot. |
void |
setRemoveSaturatedTypeFlows(boolean removeSaturatedTypeFlows)
Sets to
true if build time is reduced and build memory consumption is decreased, especially for big projects. |
void |
setRemoveSpelSupport(boolean removeSpelSupport)
Sets to
true if SpEL support is removed from Spring Boot. |
void |
setRemoveUnusedAutoConfig(boolean removeUnusedAutoConfig)
Sets to
true if the removal of unused configurations is disabled. |
void |
setRemoveXmlSupport(boolean removeXmlSupport)
Sets to
true if XML support is removed from Spring Boot. |
void |
setRemoveYamlSupport(boolean removeYamlSupport)
Sets to
true if Yaml support is removed from Spring Boot. |
void |
setReportExceptionStackTraces(boolean reportExceptionStackTraces)
Sets to
true if more details are provided should something goes wrong. |
void |
setSpringNativeMode(java.lang.String springNativeMode)
Sets the mode that switches how much configuration the feature actually provides to native-image.
|
void |
setSpringNativeVerbose(boolean springNativeVerbose)
Sets to
true if a lot of information about the feature behavior outputs is enabled as it processes auto-configuration and chooses which to include. |
void |
setStaticallyLinked(boolean staticallyLinked)
Sets to
true if a statically linked executable is to be built. |
void |
setToolVersion(java.lang.String toolVersion)
Sets the version of GraalVM Community Edition to download.
|
void |
setTraceClassInitialization(boolean traceClassInitialization)
Sets to
true if useful information to debug class initialization issues is provided. |
void |
setVerbose(boolean verbose)
Sets to
true if image building output is more verbose. |
void |
setVerify(boolean verify)
Sets to
true if the verifier mode is switched on. |
void |
setWarnMissingSelectorHints(boolean warnMissingSelectorHints)
Sets to
true if a hard error for missing hints is switched to a warning. |
protected final org.gradle.api.provider.Property<java.lang.String> toolVersion
protected final org.gradle.api.provider.Property<java.lang.String> javaVersion
protected final org.gradle.api.provider.Property<java.lang.String> download
protected final org.gradle.api.provider.Property<java.lang.Boolean> traceClassInitialization
protected final org.gradle.api.provider.Property<java.lang.Boolean> removeSaturatedTypeFlows
protected final org.gradle.api.provider.Property<java.lang.Boolean> reportExceptionStackTraces
protected final org.gradle.api.provider.Property<java.lang.Boolean> printAnalysisCallTree
protected final org.gradle.api.provider.Property<java.lang.Boolean> enableAllSecurityServices
protected final org.gradle.api.provider.Property<java.lang.Boolean> enableHttp
protected final org.gradle.api.provider.Property<java.lang.Boolean> enableHttps
protected final org.gradle.api.provider.ListProperty<java.lang.String> enableUrlProtocols
protected final org.gradle.api.provider.Property<java.lang.Boolean> staticallyLinked
protected final org.gradle.api.provider.Property<java.lang.Boolean> warnMissingSelectorHints
protected final org.gradle.api.provider.Property<java.lang.Boolean> removeUnusedAutoConfig
protected final org.gradle.api.provider.Property<java.lang.Boolean> verbose
protected final org.gradle.api.provider.Property<java.lang.Boolean> removeYamlSupport
protected final org.gradle.api.provider.Property<java.lang.Boolean> removeXmlSupport
protected final org.gradle.api.provider.Property<java.lang.Boolean> removeSpelSupport
protected final org.gradle.api.provider.Property<java.lang.Boolean> removeJmxSupport
protected final org.gradle.api.provider.Property<java.lang.Boolean> verify
protected final org.gradle.api.provider.Property<java.lang.Boolean> springNativeVerbose
protected final org.gradle.api.provider.Property<java.lang.String> springNativeMode
protected final org.gradle.api.provider.Property<java.lang.String> dumpConfig
protected final org.gradle.api.provider.Property<java.lang.String> mainClassName
protected final org.gradle.api.provider.Property<java.lang.String> maxHeapSize
protected final org.gradle.api.provider.ListProperty<java.lang.String> initializeAtBuildTime
@Inject
public SpringGraalNativeExtension(@Nonnull
org.gradle.api.model.ObjectFactory factory)
public java.lang.String getToolVersion()
20.2.0.public void setToolVersion(@Nonnull
java.lang.String toolVersion)
toolVersion - The version of GraalVM Community Edition to download.public java.lang.String getJavaVersion()
8.public void setJavaVersion(@Nonnull
java.lang.String javaVersion)
javaVersion - The version of JDK to be downloaded with GraalVM Community Edition.public java.lang.String getDownload()
public void setDownload(@Nonnull
java.lang.String download)
download - A string that represents when to download GraalVM Community Edition.public boolean getTraceClassInitialization()
true if useful information to debug class initialization issues is provided.true if useful information to debug class initialization issues is provided.public void setTraceClassInitialization(boolean traceClassInitialization)
true if useful information to debug class initialization issues is provided.traceClassInitialization - true if useful information to debug class initialization issues is provided.public boolean getRemoveSaturatedTypeFlows()
true if build time is reduced and build memory consumption is decreased, especially for big projects.true if build time is reduced and build memory consumption is decreased, especially for big projects.public void setRemoveSaturatedTypeFlows(boolean removeSaturatedTypeFlows)
true if build time is reduced and build memory consumption is decreased, especially for big projects.removeSaturatedTypeFlows - true if build time is reduced and build memory consumption is decreased, especially for big projects.public boolean getReportExceptionStackTraces()
true if more details are provided should something goes wrong.true if more details are provided should something goes wrong.public void setReportExceptionStackTraces(boolean reportExceptionStackTraces)
true if more details are provided should something goes wrong.reportExceptionStackTraces - true if more details are provided should something goes wrong.public boolean getPrintAnalysisCallTree()
true to help to find what classes, methods, and fields are used and why.true to help to find what classes, methods, and fields are used and why.public void setPrintAnalysisCallTree(boolean printAnalysisCallTree)
true to help to find what classes, methods, and fields are used and why.printAnalysisCallTree - true to help to find what classes, methods, and fields are used and why.public boolean getEnableAllSecurityServices()
true if security services are enabled for HTTPS and crypto applications.true if security services are enabled for HTTPS and crypto applications.public void setEnableAllSecurityServices(boolean enableAllSecurityServices)
true if security services are enabled for HTTPS and crypto applications.enableAllSecurityServices - true if security services are enabled for HTTPS and crypto applications.public boolean getEnableHttp()
true if HTTP support is enabled.true if HTTP support is enabled.public void setEnableHttp(boolean enableHttp)
true if HTTP support is enabled.enableHttp - true if HTTP support is enabled.public boolean getEnableHttps()
true if HTTPS support is enabled.true if HTTPS support is enabled.public void setEnableHttps(boolean enableHttps)
true if HTTPS support is enabled.enableHttps - true if HTTPS support is enabled.@Nullable public java.util.List<java.lang.String> getEnableUrlProtocols()
public void setEnableUrlProtocols(@Nullable
java.util.List<java.lang.String> enableUrlProtocols)
enableUrlProtocols - A list of URL protocols to be enabled.public boolean getStaticallyLinked()
true if a statically linked executable is to be built which is useful to deploy on a FROM scratch Docker image.true if a statically linked executable is to be built.public void setStaticallyLinked(boolean staticallyLinked)
true if a statically linked executable is to be built.staticallyLinked - true if a statically linked executable is to be built.public boolean getVerbose()
true if image building output is more verbose.true if image building output is more verbose.public void setVerbose(boolean verbose)
true if image building output is more verbose.verbose - true if image building output is more verbose.public boolean getWarnMissingSelectorHints()
true if a hard error for missing hints is switched to a warning.true if a hard error for missing hints is switched to a warning.public void setWarnMissingSelectorHints(boolean warnMissingSelectorHints)
true if a hard error for missing hints is switched to a warning.warnMissingSelectorHints - true if a hard error for missing hints is switched to a warning..public boolean getRemoveUnusedAutoConfig()
true if the removal of unused configurations is disabled.true if the removal of unused configurations is disabled.public void setRemoveUnusedAutoConfig(boolean removeUnusedAutoConfig)
true if the removal of unused configurations is disabled.removeUnusedAutoConfig - true if the removal of unused configurations is disabled.public boolean getRemoveYamlSupport()
true if Yaml support is removed from Spring Boot, enabling faster compilation and smaller executables.true if Yaml support is removed from Spring Boot.public void setRemoveYamlSupport(boolean removeYamlSupport)
true if Yaml support is removed from Spring Boot.removeYamlSupport - true if Yaml support is removed from Spring Boot.public boolean getRemoveXmlSupport()
true if XML support is removed from Spring Boot, enabling faster compilation and smaller executables.true if XML support is removed from Spring Boot.public void setRemoveXmlSupport(boolean removeXmlSupport)
true if XML support is removed from Spring Boot.removeXmlSupport - true if XML support is removed from Spring Boot.public boolean getRemoveSpelSupport()
true if SpEL support is removed from Spring Boot, enabling faster compilation and smaller executables.true if SpEL support is removed from Spring Boot.public void setRemoveSpelSupport(boolean removeSpelSupport)
true if SpEL support is removed from Spring Boot.removeSpelSupport - true if SpEL support is removed from Spring Boot.public boolean getRemoveJmxSupport()
true if JMX support is removed from Spring Boot, enabling faster compilation and smaller executables.true if JMX support is removed from Spring Boot.public void setRemoveJmxSupport(boolean removeJmxSupport)
true if JMX support is removed from Spring Boot.removeJmxSupport - true if JMX support is removed from Spring Boot.public boolean getVerify()
true if the verifier mode is switched on.true if the verifier mode is switched on.public void setVerify(boolean verify)
true if the verifier mode is switched on.verify - true if the verifier mode is switched on.public boolean getSpringNativeVerbose()
true if a lot of information about the feature behavior outputs is enabled as it processes auto-configuration and chooses which to include.true if a lot of information about the feature behavior outputs is enabled as it processes auto-configuration and chooses which to include.public void setSpringNativeVerbose(boolean springNativeVerbose)
true if a lot of information about the feature behavior outputs is enabled as it processes auto-configuration and chooses which to include.springNativeVerbose - true if a lot of information about the feature behavior outputs is enabled as it processes auto-configuration and chooses which to include.@Nonnull public java.lang.String getSpringNativeMode()
SpringNativeMode.AGENT,
SpringNativeMode.FEATURE,
SpringNativeMode.FUNCTIONALpublic void setSpringNativeMode(@Nonnull
java.lang.String springNativeMode)
springNativeMode - The mode that switches how much configuration the feature actually provides to native-image.@Nullable public java.lang.String getDumpConfig()
public void setDumpConfig(@Nullable
java.lang.String dumpConfig)
dumpConfig - The file path to dump the configuration to.@Nullable public java.lang.String getMainClassName()
main() method as the entry point of the executable.main() method as the entry point of the executable.public void setMainClassName(@Nullable
java.lang.String mainClassName)
main() method as the entry point of the executable.mainClassName - The fully qualified name of the Java class that contains the main() method as the entry point of the executable.@Nullable public java.lang.String getMaxHeapSize()
public void setMaxHeapSize(@Nullable
java.lang.String maxHeapSize)
maxHeapSize - The maximum Java heap size allowed for building the native image.@Nullable public java.util.List<java.lang.String> getInitializeAtBuildTime()
public void setInitializeAtBuildTime(@Nullable
java.util.List<java.lang.String> initializeAtBuildTime)
initializeAtBuildTime - The classes to be initialized by default at build time.