Skip to content

Commit

Permalink
Add more Netty configs
Browse files Browse the repository at this point in the history
  • Loading branch information
guizmaii committed Jul 18, 2023
1 parent 3d9ed9c commit ab55bf3
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,24 @@ lazy val cli =
// "-H:+BuildReport", // only available on Oracle GraalVM
"-H:ExcludeResources=.*.jar,.*.properties",
"-Djdk.http.auth.tunneling.disabledSchemes=",
"--initialize-at-run-time=io.netty.handler.ssl.BouncyCastleAlpnSslUtils",
)
) ++ Seq(
"""
|io.netty.handler.ssl.BouncyCastleAlpnSslUtils
|io.netty.channel.epoll.Epoll
|io.netty.channel.epoll.Native
|io.netty.channel.epoll.EpollEventLoop
|io.netty.channel.epoll.EpollEventArray
|io.netty.channel.DefaultFileRegion
|io.netty.channel.kqueue.KQueueEventArray
|io.netty.channel.kqueue.KQueueEventLoop
|io.netty.channel.kqueue.KQueue
|io.netty.channel.kqueue.Native
|io.netty.channel.unix.Errors
|io.netty.channel.unix.IovArray
|io.netty.channel.unix.Limits
|io.netty.util.internal.logging.Log4JLogger
|""".stripMargin.trim.split('\n').map(c => s"--initialize-at-run-time=$c").mkString(",")
)
},
nativeImageAgentMerge := true,
nativeImageOptions += s"-H:ConfigurationFileDirectories=${(Compile / resourceDirectory).value}/META-INF/native-image",
Expand Down

0 comments on commit ab55bf3

Please sign in to comment.