jbangdev / jbang

Unleash the power of Java - JBang Lets Students, Educators and Professional Developers create, edit and run self-contained source-only Java programs with unprecedented ease.
https://jbang.dev
MIT License
1.43k stars 159 forks source link

Add GRAALVM_OPTIONS #973

Open grumpyf0x48 opened 3 years ago

grumpyf0x48 commented 3 years ago

We may need some options to pass to native_image, for example -H:+AllowIncompleteClasspath.

I have the case for which fails to build in native because of that.

It can be tested by adding the following dependency to the file:

//DEPS info.picocli:picocli-codegen:4.6.1

It would then be great to be able to add options in the Java source file just like we can do it already for JAVA_OPTIONS and JAVAC_OPTIONS.

maxandersen commented 3 years ago

I guess that makes sense. Want to make a PR for it ?

grumpyf0x48 commented 3 years ago

i will.