forked from FIWARE/NGSI-LD_Experimental
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
43 lines (28 loc) · 1.23 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
name := "NGSI-LD_Wrapper"
version := "0.1"
scalaVersion := "2.12.6"
libraryDependencies += "org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.0"
libraryDependencies += "org.scalactic" %% "scalactic" % "3.0.5"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.5" % "test"
libraryDependencies += "org.apache.httpcomponents" % "httpclient" % "4.5.5"
val ScalatraVersion = "2.6.3"
javaOptions in Jetty ++= Seq("-server")
javaOptions in Universal ++= Seq("-server", "-XX:+UseG1GC")
libraryDependencies ++= Seq(
"org.scalatra" %% "scalatra" % ScalatraVersion,
"org.scalatra" %% "scalatra-scalatest" % ScalatraVersion % "test",
"ch.qos.logback" % "logback-classic" % "1.2.3" % "runtime",
"javax.servlet" % "javax.servlet-api" % "3.1.0" % "provided",
"org.eclipse.jetty" % "jetty-webapp" % "9.4.8.v20171121" % "container;compile"
)
resolvers += Classpaths.typesafeReleases
enablePlugins(ScalatraPlugin)
enablePlugins(JettyPlugin)
enablePlugins(JavaAppPackaging)
enablePlugins(DockerPlugin)
enablePlugins(AshScriptPlugin)
containerPort in Jetty := 1030
version in Docker := "latest"
packageName in Docker := "fiware/ngsi-ld_wrapper"
dockerBaseImage := "openjdk:jre-alpine"
mainClass in Compile := Some("main.JettyLauncher")