public class GradleGraalPlugin
extends java.lang.Object
implements org.gradle.api.Plugin<org.gradle.api.Project>
All tooling execution (e.g. nativeImage) will cause GraalVM tooling to download and cache if not already present. Currently, GraalVM CE only supports MacOS and Linux, and, as a result, this plugin will only correctly function on MacOS and Linux. The plugin will automatically select the correct architecture and error clearly if the runtime architecture is not supported.
Downloads are stored in ~/.gradle/caches/com.palantir.graal using the following structure:
~/.gradle/caches/com.palantir.graal/
└── [version]/
├── graalvm-ce-[version]/
│ └── [local architecture-specific GraalVM tooling]
└── graalvm-ce-[version]-amd64.tar.gz
| Modifier and Type | Field and Description |
|---|---|
static java.nio.file.Path |
CACHE_DIR
Location to cache downloaded and extracted GraalVM tooling.
|
static java.lang.String |
TASK_GROUP |
| Constructor and Description |
|---|
GradleGraalPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(org.gradle.api.Project project) |
public static final java.nio.file.Path CACHE_DIR
public static final java.lang.String TASK_GROUP