-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
41 lines (32 loc) · 1.38 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
enablePlugins(GraalVMNativeImagePlugin)
name := "hello-zio-http"
scalaVersion := "2.13.7"
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "1.0.12",
"io.d11" %% "zhttp" % "1.0.0.0-RC18",
"org.scalameta" %% "svm-subs" % "20.2.0",
)
Compile / doc / sources := Seq.empty
makePom / publishArtifact := false
Global / packageDoc / publishArtifact := true
graalVMNativeImageOptions ++= Seq(
"--static",
"--no-fallback",
"--install-exit-handlers",
"--enable-http",
"--initialize-at-run-time=io.netty.channel.DefaultFileRegion",
"--initialize-at-run-time=io.netty.channel.epoll.Native",
"--initialize-at-run-time=io.netty.channel.epoll.Epoll",
"--initialize-at-run-time=io.netty.channel.epoll.EpollEventLoop",
"--initialize-at-run-time=io.netty.channel.epoll.EpollEventArray",
"--initialize-at-run-time=io.netty.channel.kqueue.KQueue",
"--initialize-at-run-time=io.netty.channel.kqueue.KQueueEventLoop",
"--initialize-at-run-time=io.netty.channel.kqueue.KQueueEventArray",
"--initialize-at-run-time=io.netty.channel.kqueue.Native",
"--initialize-at-run-time=io.netty.channel.unix.Limits",
"--initialize-at-run-time=io.netty.channel.unix.Errors",
"--initialize-at-run-time=io.netty.channel.unix.IovArray",
"--allow-incomplete-classpath",
)
//fork := true
//run / javaOptions += s"-agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image"