Skip to content

Instantly share code, notes, and snippets.

@lbialy
Created May 4, 2019 22:01
Show Gist options
  • Save lbialy/49afc21ae32aa376d5603292fd14de7e to your computer and use it in GitHub Desktop.
Save lbialy/49afc21ae32aa376d5603292fd14de7e to your computer and use it in GitHub Desktop.
How to build native coursier from current master
[
{
"name" : "com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl",
"allDeclaredConstructors" : true,
"allPublicConstructors" : true,
"allDeclaredMethods" : true,
"allPublicMethods" : true,
"allDeclaredClasses" : true,
"allPublicClasses" : true
}
]
λ git clone https://github.com/coursier/coursier.git
λ cd coursier
λ git rev-parse HEAD
ca4aa4e1e26947ef9aa514547adbac157320e808
λ ./scripts/generate-launcher.sh --assembly
λ native-image --enable-http --enable-https -H:ReflectionConfigurationFiles=reflection.json --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
*works*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment