From 7366460231f03ec9b74f8ea093293426e15c00d5 Mon Sep 17 00:00:00 2001 From: niegrzybkowski Date: Fri, 11 Jul 2025 12:51:44 +0200 Subject: [PATCH 1/2] Add reflection configuration for org.glassfish.json.JsonProviderImpl to graalOptions --- build.sbt | 1 + graal.json | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 graal.json diff --git a/build.sbt b/build.sbt index 802461e..387ca96 100644 --- a/build.sbt +++ b/build.sbt @@ -25,6 +25,7 @@ lazy val graalOptions = Seq( if (isDevBuild) Seq("-Ob") else Seq("-Os", "--emit build-report"), ).flatten ++ Seq( "--features=eu.neverblink.jelly.cli.graal.ProtobufFeature", + "-H:ReflectionConfigurationFiles=" + file("graal.json").getAbsolutePath, ) lazy val root = (project in file(".")) diff --git a/graal.json b/graal.json new file mode 100644 index 0000000..d776da7 --- /dev/null +++ b/graal.json @@ -0,0 +1,12 @@ +[ + { + "name": "org.glassfish.json.JsonProviderImpl", + "methods": [ + { "name": "", "parameterTypes": [] } + ], + "allDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredMethods": true, + "allPublicMethods": true + } +] From 039817f04e82d5b3c25b1ff26c6b67c99e0788c1 Mon Sep 17 00:00:00 2001 From: niegrzybkowski Date: Fri, 11 Jul 2025 13:05:06 +0200 Subject: [PATCH 2/2] Add minimal JSONLD test for AOT builds --- .github/workflows/aot-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/aot-test.yml b/.github/workflows/aot-test.yml index 1e80b0f..c7b7c81 100644 --- a/.github/workflows/aot-test.yml +++ b/.github/workflows/aot-test.yml @@ -39,6 +39,9 @@ jobs: target/graalvm-native-image/jelly-cli \ rdf from-jelly --out-format=jelly-text out.jelly > out.txt && \ [ -s out.txt ] + target/graalvm-native-image/jelly-cli \ + rdf from-jelly --out-format=jsonld out.jelly > out.json && \ + [ -s out.json ] - name: Upload binary uses: actions/upload-artifact@v4