From 0178f67fe1b8ab18a6f064f2d39c12de3afe2210 Mon Sep 17 00:00:00 2001 From: Daniel Mikusa Date: Fri, 8 Dec 2023 15:10:07 -0500 Subject: [PATCH] Update content/posts/0025-oracle-graalvm-support.md Co-authored-by: Anthony Dahanne --- content/posts/0025-oracle-graalvm-support.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/posts/0025-oracle-graalvm-support.md b/content/posts/0025-oracle-graalvm-support.md index ea4d8a5..c550557 100644 --- a/content/posts/0025-oracle-graalvm-support.md +++ b/content/posts/0025-oracle-graalvm-support.md @@ -76,6 +76,17 @@ If you're using Spring Boot Build Tools to generate your application image, you 2. Then run `./mvnw spring-boot:build-image -Pnative` to build your image. +And the equivalent change with Gradle `build.gradle`: + ``` + ... + tasks.named("bootBuildImage") { + builder = "paketobuildpacks/builder-jammy-tiny:latest" + buildpacks = ["docker.io/paketobuildpacks/oracle", "urn:cnb:builder:paketo-buildpacks/java-native-image"] + } + ... + ``` +2. Then run `./gradlew bootBuildImage` to build your image. + ## Future Roadmap At the moment, the Oracle buildpack supports using the [Oracle free JDK](https://www.oracle.com/java/technologies/downloads/) for running your Java apps, and it supports using [Oracle GraalVM](https://www.oracle.com/java/graalvm/) for building your Native Image apps. What's been left out at the moment is support to use Oracle GraalVM as a JDK to run your Java apps.