mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-20 18:24:48 +01:00
47388efcc0
* Refactor Mains to use common BitcoinSRunner * Give better name
29 lines
917 B
Scala
29 lines
917 B
Scala
name := "bitcoin-s-server"
|
|
|
|
// Ensure actor system is shut down
|
|
// when server is quit
|
|
Compile / fork := true
|
|
|
|
libraryDependencies ++= Deps.server(scalaVersion.value)
|
|
|
|
mainClass := Some("org.bitcoins.server.BitcoinSServerMain")
|
|
|
|
graalVMNativeImageOptions ++= Seq(
|
|
"-H:EnableURLProtocols=http",
|
|
"-H:+ReportExceptionStackTraces",
|
|
// 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",
|
|
"--report-unsupported-elements-at-runtime",
|
|
"--verbose"
|
|
)
|
|
|
|
packageSummary := "A Bitcoin neutrino node and wallet"
|
|
|
|
packageDescription := "Runs a Bitcoin neutrino node and wallet, has functionality " +
|
|
"for many different modes and configuration options, see more at https://bitcoin-s.org/docs/applications/server"
|
|
|
|
enablePlugins(JavaAppPackaging, GraalVMNativeImagePlugin)
|