Skip to content

Instantly share code, notes, and snippets.

@alexarchambault
Last active May 1, 2019 09:40
Show Gist options
  • Save alexarchambault/4233fc60b9dcb63c6c0f986c33ef9019 to your computer and use it in GitHub Desktop.
Save alexarchambault/4233fc60b9dcb63c6c0f986c33ef9019 to your computer and use it in GitHub Desktop.
$ git clone https://github.com/coursier/coursier.git
$ cd coursier
$ git rev-parse HEAD
dc5b9f127e4a7b26317a656ef7f10f10c4f3c625
$ scripts/generate-launcher.sh --assembly
$ $GRAALVM_HOME/bin/native-image --enable-http --enable-https --no-fallback -jar coursier coursier-graalvm
$ ./coursier-graalvm resolve org.apache.spark:spark-sql_2.12:2.4.2 --no-default -r http://repo1.maven.org/maven2
…

See also the stale/test-graalvm branch, with workarounds for APIs relying on reflection, that should be ported to the current master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment