This repository has been archived by the owner on Oct 11, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
74 lines (56 loc) · 2.25 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
import com.typesafe.sbt.packager.docker
import com.typesafe.sbt.packager.docker.ExecCmd
import scalariform.formatter.preferences._
name := "gargoyle-sts"
version := "0.1"
scalaVersion := "2.12.6"
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 := "gargoyle-sts.jar"
val akkaVersion = "10.1.3"
val keycloakVersion = "4.2.1.Final"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % akkaVersion,
"com.typesafe.akka" %% "akka-stream" % "2.5.14",
"ch.megard" %% "akka-http-cors" % "0.3.0",
"com.typesafe.akka" %% "akka-http-spray-json" % akkaVersion,
"com.typesafe.akka" %% "akka-http-xml" % akkaVersion,
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.0",
"ch.qos.logback" % "logback-classic" % "1.2.3",
"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.scalatest" %% "scalatest" % "3.0.5" % "test, it",
"com.typesafe.akka" %% "akka-http-testkit" % akkaVersion % Test,
"com.amazonaws" % "aws-java-sdk-sts" % "1.11.376" % IntegrationTest,
"org.mariadb.jdbc" % "mariadb-java-client" % "2.3.0")
configs(IntegrationTest)
Defaults.itSettings
parallelExecution in IntegrationTest := false
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("kr7ysztof"),
"gargoyle-sts",
Option(System.getenv("DOCKER_TAG")))
scalariformPreferences := scalariformPreferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DanglingCloseParenthesis, Preserve)
.setPreference(DoubleIndentConstructorArguments, true)
.setPreference(DoubleIndentMethodDeclaration, true)
.setPreference(NewlineAtEndOfFile, true)
.setPreference(SingleCasePatternOnNewline, false)
scalastyleFailOnError := true