Package com.palantir.gradle.graal
Class GraalExtension
java.lang.Object
com.palantir.gradle.graal.GraalExtension
Contains options and settings for tuning GraalVM use.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voiddownloadBaseUrl(String value) final org.gradle.api.provider.Provider<String>Returns the base URL to use for downloading GraalVM binaries.final org.gradle.api.provider.Provider<String>final org.gradle.api.provider.Provider<String>Returns the graalVersion of GraalVM to use.final org.gradle.api.provider.Provider<String>Returns the javaVersion for GraalVM to use.final org.gradle.api.provider.Provider<String>Returns the main class to use as the entry point to the generated executable file.final org.gradle.api.provider.Provider<String>Returns the outputName to use for the generated executable file.final org.gradle.api.provider.Provider<String>Returns the VS 64-bit Variables Path to use.final voidgraalVersion(String value) final voidjavaVersion(String value) final voidfinal voidAdd option from https://github.com/oracle/graal/blob/master/substratevm/OPTIONS.md.final voidoutputName(String value) final voidwindowsVsEdition(String value) final voidwindowsVsVarsPath(String value) final voidwindowsVsVersion(String value)
-
Constructor Details
-
GraalExtension
public GraalExtension(org.gradle.api.Project project)
-
-
Method Details
-
downloadBaseUrl
-
getDownloadBaseUrl
Returns the base URL to use for downloading GraalVM binaries.Defaults to
DEFAULT_DOWNLOAD_BASE_URLfor GraalVM lower than 19.3.Defaults to
DOWNLOAD_BASE_URL_GRAAL_19_3for GraalVM higher or equal to 19.3. -
mainClass
-
getMainClass
Returns the main class to use as the entry point to the generated executable file. -
outputName
-
getOutputName
Returns the outputName to use for the generated executable file.Check
Provider.isPresent()to determine if an override has been set. -
graalVersion
-
getJavaVersion
Returns the javaVersion for GraalVM to use.Defaults to
DEFAULT_JAVA_VERSION -
javaVersion
-
getWindowsVsVarsPath
Returns the VS 64-bit Variables Path to use.Defaults to
DEFAULT_WINDOWS_VS_VARS_PATHfor JDK higher or equal to 11Defaults to
WINDOWS_7_ENV_PATHfor JDK lower than 11 -
windowsVsVarsPath
-
windowsVsVersion
-
windowsVsEdition
-
getGraalVersion
Returns the graalVersion of GraalVM to use.Defaults to
DEFAULT_GRAAL_VERSION -
getOptions
-
option
Add option from https://github.com/oracle/graal/blob/master/substratevm/OPTIONS.md. -
getGraalDirectoryName
-