Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #169 from mirosval/master
Browse files Browse the repository at this point in the history
fix java 11 module issue
  • Loading branch information
shuttie authored Jun 10, 2020
2 parents 1efcef2 + 7954bae commit 068a585
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.3" % "test",
"org.iq80.leveldb" % "leveldb" % "0.12",
"com.lightbend.akka" %% "akka-stream-alpakka-s3" % "1.1.2" % "test",
"javax.xml.bind" % "jaxb-api" % "2.3.1"
"javax.xml.bind" % "jaxb-api" % "2.3.0",
"com.sun.xml.bind" % "jaxb-core" % "2.3.0",
"com.sun.xml.bind" % "jaxb-impl" % "2.3.0"
)

libraryDependencies ++= {
Expand Down Expand Up @@ -73,7 +75,14 @@ dockerfile in docker := new Dockerfile {
from("adoptopenjdk/openjdk11:jre-11.0.7_10-debian")
expose(8001)
add(assembly.value, "/app/s3mock.jar")
entryPoint("java", "-Xmx128m", "-jar", "--add-modules", "java.xml.bind", "/app/s3mock.jar")
entryPoint(
"java",
"-Xmx128m",
"-jar",
"--add-opens",
"java.base/jdk.internal.ref=ALL-UNNAMED",
"/app/s3mock.jar"
)
}
imageNames in docker := Seq(
ImageName(s"findify/s3mock:${version.value.replaceAll("\\+", "_")}"),
Expand Down

0 comments on commit 068a585

Please sign in to comment.