mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-22 14:33:06 +01:00
Update cli.sbt for native-image building
This commit is contained in:
parent
f252a08f6b
commit
5f80476f4a
1 changed files with 10 additions and 2 deletions
|
@ -2,8 +2,16 @@ name := "bitcoin-s-cli"
|
||||||
|
|
||||||
libraryDependencies ++= Deps.cli
|
libraryDependencies ++= Deps.cli
|
||||||
|
|
||||||
graalVMNativeImageOptions += "-H:EnableURLProtocols=http"
|
graalVMNativeImageOptions ++= Seq(
|
||||||
|
"-H:EnableURLProtocols=http",
|
||||||
|
// builds a stand-alone image or reports a failure
|
||||||
|
"--no-fallback",
|
||||||
|
// without this, we get complaints about Function3
|
||||||
|
// I'm not sure why, though...
|
||||||
|
"--initialize-at-build-time=scala.Function3",
|
||||||
|
"--verbose"
|
||||||
|
)
|
||||||
|
|
||||||
enablePlugins(JavaAppPackaging, GraalVMNativeImagePlugin)
|
enablePlugins(JavaAppPackaging, GraalVMNativeImagePlugin)
|
||||||
|
|
||||||
publish / skip := true
|
publish / skip := true
|
||||||
|
|
Loading…
Add table
Reference in a new issue