Skip to content

Commit

Permalink
Not initialize anything at build in native-image
Browse files Browse the repository at this point in the history
  • Loading branch information
pierscin committed Sep 28, 2021
1 parent 8516233 commit 9bf27b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,13 @@ lazy val nativeServer: Project = (project in file("native-server"))
"-H:IncludeResources=.*conf",
"-H:IncludeResources=version",
"-H:IncludeResources=.*\\.properties",
"-H:IncludeResources='org/joda/time/tz/data/.*'",
"-H:IncludeResources=org/joda/time/tz/data/.*",
"-H:+ReportExceptionStackTraces",
"-H:-ThrowUnsafeOffsetErrors",
"-H:+PrintClassInitialization",
"--enable-http",
"--enable-https",
"--enable-url-protocols=https,http",
"--initialize-at-build-time",
"--report-unsupported-elements-at-runtime",
"--allow-incomplete-classpath",
"--no-fallback",
Expand Down
1 change: 0 additions & 1 deletion server/src/main/scala/org/elasticmq/server/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ object Main extends Logging {

logUncaughtExceptions()

ConfigFactory.invalidateCaches()
val config = ConfigFactory.load()
val server = new ElasticMQServer(new ElasticMQServerConfig(config))
val shutdown = server.start()
Expand Down

0 comments on commit 9bf27b7

Please sign in to comment.