Skip to content

Commit

Permalink
[cli] restore graalvm 20.3 configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoBonacci committed Jul 18, 2022
1 parent 24d5dd6 commit 5754300
Show file tree
Hide file tree
Showing 9 changed files with 537 additions and 1,309 deletions.
3 changes: 2 additions & 1 deletion 1config-cli/bin/native-image-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
export BASE=${1:-.}
export PLATFORM=${2}

# using graalvm-ce-java17-22.1.0
# using GraalVM CE 20.3.0
native-image --report-unsupported-elements-at-runtime \
--no-server \
--no-fallback \
-H:+PrintClassInitialization \
-H:ConfigurationFileDirectories=$BASE/graalvm-config/ \
--initialize-at-build-time \
--allow-incomplete-classpath \
--enable-http \
--enable-https \
Expand Down
29 changes: 2 additions & 27 deletions 1config-cli/graalvm-config/jni-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,12 @@
"name":"com.brunobonacci.oneconfig.main",
"methods":[{"name":"main","parameterTypes":["java.lang.String[]"] }]
},
{
"name":"java.lang.Boolean",
"methods":[{"name":"getBoolean","parameterTypes":["java.lang.String"] }]
},
{
"name":"java.lang.ClassLoader",
"methods":[
{"name":"getPlatformClassLoader","parameterTypes":[] },
{"name":"loadClass","parameterTypes":["java.lang.String"] }
]
},
{
"name":"java.lang.String",
"methods":[
{"name":"lastIndexOf","parameterTypes":["int"] },
{"name":"substring","parameterTypes":["int"] }
]
},
{
"name":"java.lang.System",
"methods":[
{"name":"getProperty","parameterTypes":["java.lang.String"] },
{"name":"setProperty","parameterTypes":["java.lang.String","java.lang.String"] }
]
},
{
"name":"jdk.internal.loader.ClassLoaders$PlatformClassLoader"
"methods":[{"name":"getPlatformClassLoader","parameterTypes":[] }]
},
{
"name":"org.graalvm.jniutils.JNIExceptionWrapperEntryPoints",
"methods":[{"name":"getClassName","parameterTypes":["java.lang.Class"] }]
"name":"java.lang.NoSuchMethodError"
},
{
"name":"sun.management.VMManagementImpl",
Expand Down
8 changes: 0 additions & 8 deletions 1config-cli/graalvm-config/predefined-classes-config.json

This file was deleted.

Loading

0 comments on commit 5754300

Please sign in to comment.