-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
45 lines (37 loc) · 1.65 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
scalaVersion := "3.3.1"
ThisBuild / name := "eth-tailz"
githubTokenSource := TokenSource.GitConfig("github.token")
resolvers += Resolver.githubPackages("amarinkovic", "contracts-v3-java")
libraryDependencies ++= Seq(
"io.nayms" % "contracts" % "3.9.3",
"dev.zio" %% "zio" % "2.0.13",
"dev.zio" %% "zio-streams" % "2.0.13",
"dev.zio" %% "zio-config" % "3.0.7",
"dev.zio" %% "zio-cli" % "0.5.0",
"org.web3j" % "core" % "4.9.5",
"ch.qos.logback" % "logback-classic" % "1.4.7"
)
addCommandAlias("generateCliNativeConfig", "nativeImageRunAgent")
addCommandAlias("compileCliNativeBinary", "nativeImage")
addCommandAlias("generateCliNativeConfigAndBinary", "generateCliNativeConfig;compileCliNativeBinary")
lazy val root =
Project(id = "eth-tailz", base = file("."))
.enablePlugins(NativeImagePlugin)
.settings(
Compile / mainClass := Some("io.mankea.eth.streamer.App"),
// sbt-native-image configs
nativeImageOptions := {
Seq(
"--no-fallback",
"--install-exit-handlers",
"--diagnostics-mode",
"-Djdk.http.auth.tunneling.disabledSchemes=",
)
},
nativeImageInstalled := true,
nativeImageAgentMerge := true,
nativeImageOptions += s"-H:ConfigurationFileDirectories=${(Compile / resourceDirectory).value}/META-INF/native-image",
nativeImageAgentOutputDir := (Compile / resourceDirectory).value / "META-INF/native-image",
nativeImageOutput := (ThisBuild / baseDirectory).value / "target/eth-tailz", // The generated executable binary
Global / excludeLintKeys ++= Set(nativeImageVersion, nativeImageJvm), // Wrongly reported as unused keys by sbt
)