-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
89 lines (77 loc) · 3.95 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
83
84
85
86
87
88
89
import sbt.Keys.resolvers
lazy val drtLibVersion = "v972"
lazy val drtCiriumVersion = "203"
lazy val akkaHttpVersion = "10.5.3"
lazy val akkaVersion = "2.8.5"
lazy val jodaTimeVersion = "2.12.5"
lazy val scalaLoggingVersion = "3.9.5"
lazy val logBackClassicVersion = "1.4.13"
lazy val scalaTagsVersion = "0.12.0"
lazy val specs2Version = "4.20.3"
lazy val logBackJsonVersion = "0.1.5"
lazy val scalaTestVersion = "3.2.17"
lazy val janinoVersion = "3.1.11"
lazy val jacksonDatabindVersion = "2.15.3"
lazy val notificationsJavaClientVersion = "4.1.1-RELEASE"
lazy val scalaCsvVersion = "1.3.10"
lazy val slickVersion = "3.4.1"
lazy val awsJava2SdkVersion = "2.21.40"
lazy val postgresqlVersion = "42.7.2"
lazy val mockitoVersion = "4.6.1"
lazy val poiScalaVersion ="0.24"
lazy val root = (project in file(".")).
settings(
inThisBuild(List(
organization := "uk.gov.homeoffice.drt",
scalaVersion := "2.13.12"
)),
version := sys.env.getOrElse("DRONE_BUILD_NUMBER", sys.env.getOrElse("BUILD_ID", "DEV")),
name := "drt-dashboard",
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
dockerBaseImage := "openjdk:11-jre-slim-buster",
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor-typed" % akkaVersion,
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-caching" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion,
"joda-time" % "joda-time" % jodaTimeVersion,
"com.typesafe.scala-logging" %% "scala-logging" % scalaLoggingVersion,
"ch.qos.logback" % "logback-classic" % logBackClassicVersion % Runtime,
"com.lihaoyi" %% "scalatags" % scalaTagsVersion,
"uk.gov.homeoffice" %% "drt-cirium" % drtCiriumVersion,
"uk.gov.homeoffice" %% "drt-lib" % drtLibVersion excludeAll("org.scala-lang.modules", "scala-xml"),
"ch.qos.logback.contrib" % "logback-json-classic" % logBackJsonVersion,
"ch.qos.logback.contrib" % "logback-jackson" % logBackJsonVersion,
"org.codehaus.janino" % "janino" % janinoVersion,
"com.fasterxml.jackson.core" % "jackson-databind" % jacksonDatabindVersion,
"uk.gov.service.notify" % "notifications-java-client" % notificationsJavaClientVersion,
"com.github.tototoshi" %% "scala-csv" % scalaCsvVersion,
"org.scalactic" %% "scalactic" % scalaTestVersion,
"software.amazon.awssdk" % "s3" % awsJava2SdkVersion,
"info.folone" %% "poi-scala" % poiScalaVersion,
"com.typesafe.slick" %% "slick" % slickVersion,
"com.typesafe.slick" %% "slick-hikaricp" % slickVersion,
"org.postgresql" % "postgresql" % postgresqlVersion,
"com.h2database" % "h2" % "2.2.224" % Test,
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % Test,
"com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion % Test,
"com.typesafe.akka" %% "akka-actor-testkit-typed" % akkaVersion % Test,
"org.scalatest" %% "scalatest" % scalaTestVersion % Test,
"org.specs2" %% "specs2-core" % specs2Version % Test,
"org.mockito" % "mockito-core" % mockitoVersion % Test,
),
resolvers += "Artifactory Release Realm" at "https://artifactory.digital.homeoffice.gov.uk/",
resolvers += "Artifactory Realm release local" at "https://artifactory.digital.homeoffice.gov.uk/artifactory/libs-release-local/",
resolvers += "Spring Lib Release Repository" at "https://repo.spring.io/libs-release/",
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
dockerExposedPorts ++= Seq(8081),
)
.enablePlugins(DockerPlugin)
.enablePlugins(JavaAppPackaging)
Test / parallelExecution := false
Test / javaOptions += "-Duser.timezone=UTC"
Runtime / javaOptions += "-Duser.timezone=UTC"
Compile / unmanagedResourceDirectories += baseDirectory.value / "src" / "main" / "resources"
run / fork := true
cancelable in Global := true