forked from ing-bank/rokku-sts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
83 lines (65 loc) · 2.8 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import com.typesafe.sbt.packager.docker
import com.typesafe.sbt.packager.docker.ExecCmd
import scalariform.formatter.preferences._
val rokkuStsVersion = scala.sys.env.getOrElse("ROKKU_STS_VERSION", "SNAPSHOT")
name := "rokku-sts"
version := rokkuStsVersion
scalaVersion := "2.13.1"
scalacOptions := Seq(
"-unchecked",
"-deprecation",
"-encoding", "utf-8",
"-target:jvm-1.8",
"-feature",
"-Xlint",
"-Xfatal-warnings"
)
// Experimental: improved update resolution.
updateOptions := updateOptions.value.withCachedResolution(cachedResoluton = true)
assemblyJarName in assembly := "rokku-sts.jar"
val akkaVersion = "2.6.3"
val akkaHttpVersion = "10.1.11"
val keycloakVersion = "8.0.2"
val logbackJson = "0.1.5"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"ch.megard" %% "akka-http-cors" % "0.4.2",
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-xml" % akkaHttpVersion,
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.2",
"ch.qos.logback" % "logback-classic" % "1.2.3",
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
"org.keycloak" % "keycloak-core" % keycloakVersion,
"org.keycloak" % "keycloak-adapter-core" % keycloakVersion,
"org.jboss.logging" % "jboss-logging" % "3.3.2.Final",
"org.apache.httpcomponents" % "httpclient" % "4.5.6",
"org.mariadb.jdbc" % "mariadb-java-client" % "2.3.0",
"ch.qos.logback.contrib" % "logback-json-classic" % logbackJson,
"ch.qos.logback.contrib" % "logback-jackson" % logbackJson,
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.9",
"org.scalatest" %% "scalatest" % "3.1.0" % "test, it",
"com.auth0" % "java-jwt" % "3.8.0",
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % Test,
"com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion % Test,
"com.amazonaws" % "aws-java-sdk-sts" % "1.11.720" % IntegrationTest)
configs(IntegrationTest)
Defaults.itSettings
parallelExecution in IntegrationTest := false
javaOptions in Universal ++= Seq(
"-Dlogback.configurationFile=/rokku/logback.xml"
)
enablePlugins(JavaAppPackaging)
fork := true
dockerExposedPorts := Seq(12345)
dockerCommands += ExecCmd("ENV", "PROXY_HOST", "0.0.0.0")
dockerBaseImage := "openjdk:8u171-jre-slim-stretch"
dockerAlias := docker.DockerAlias(Some("docker.io"), Some("wbaa"), "rokku-sts", Some(rokkuStsVersion))
scalariformPreferences := scalariformPreferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DanglingCloseParenthesis, Preserve)
.setPreference(DoubleIndentConstructorArguments, true)
.setPreference(DoubleIndentMethodDeclaration, true)
.setPreference(NewlineAtEndOfFile, true)
.setPreference(SingleCasePatternOnNewline, false)
scalastyleFailOnError := true