-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
24 lines (22 loc) · 980 Bytes
/
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
import sbt.Keys.javaOptions
lazy val dockerSettings = Seq(
dockerBaseImage := "openjdk:jre-alpine",
dockerImageCreationTask := (publishLocal in Docker).value
)
lazy val root =
Project("akka-http-animal-service", file("."))
.settings(
name := "Akka Http Animal Service",
organization := "com.example",
scalaVersion := "2.12.4",
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
libraryDependencies ++= Dependencies.dependencies,
dependencyOverrides ++= Dependencies.dependencyOverrides,
scalacOptions := ScalacOptions.default,
javaAgents += "org.aspectj" % "aspectjweaver" % "1.8.13",
javaOptions in Universal += "-Dorg.aspectj.tracing.factory=default"
)
.settings(dockerSettings)
.settings(Testing.e2eSettings)
.configs(Testing.EndToEndTestConfig)
.enablePlugins(JavaAppPackaging, DockerPlugin, AshScriptPlugin, DockerComposePlugin, JavaAgent)