graalvm / graalvm-demos

This repository contains example applications to illustrate the different capabilities of GraalVM
http://graalvm.org
Universal Permissive License v1.0
581 stars 154 forks source link

Upgrade Fortune teller application to include resources using resource-config.json instead of running the Tracing agent. #268

Closed olyagpl closed 2 months ago

olyagpl commented 3 months ago
  1. Upgrade fortune-maven and fortune-gradle applications to include resources using resource-config.json instead of running the Tracing agent. The fortune-maven can run on the latest GraalVM for JDK 23 release, unlike fortune-gradle, which requires JDK 21 for compatibility with Gradle. With this upgrade, the native executable file size decreased significantly (even without -Os optimization!). For example, from 27M to 13M for fortune-maven.

  2. Delete staticfortune application which is basically a duplication of fortune-maven. It didn't show how to build a static image, but a mostly-static; there was no mention where this demo is used. We already have Tiny Java Containers demos demonstrating Native Image linking options.

Goals: