-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy pathbuild.sbt
74 lines (57 loc) · 2.29 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
name := "akka-http-rest"
organization := "me.archdev"
version := "1.0.0"
scalaVersion := "2.13.5"
resolvers += "jitpack" at "https://jitpack.io"
libraryDependencies ++= {
val akkaV = "2.6.13"
val akkaHttpV = "10.2.4"
val scalaTestV = "3.2.5"
val slickVersion = "3.3.3"
val circeV = "0.12.3"
val sttpV = "3.2.0"
Seq(
"com.typesafe.akka" %% "akka-actor" % akkaV,
"com.typesafe.akka" %% "akka-stream" % akkaV,
// HTTP server
"com.typesafe.akka" %% "akka-http" % akkaHttpV,
"com.typesafe.akka" %% "akka-http-core" % akkaHttpV,
// Support of CORS requests, version depends on akka-http
"ch.megard" %% "akka-http-cors" % "1.1.1",
// SQL generator
"com.typesafe.slick" %% "slick" % slickVersion,
// Postgres driver
"org.postgresql" % "postgresql" % "42.1.4",
// Migration for SQL databases
"org.flywaydb" % "flyway-core" % "4.2.0",
// Connection pool for database
"com.zaxxer" % "HikariCP" % "2.7.0",
// Encoding decoding sugar, used in passwords hashing
"com.github.fdietze.hasher" %% "hasher" % "75be8ed",
// Parsing and generating of JWT tokens
"com.pauldijou" %% "jwt-core" % "5.0.0",
// Config file parser
"com.github.pureconfig" %% "pureconfig" % "0.14.1",
// JSON serialization library
"io.circe" %% "circe-core" % circeV,
"io.circe" %% "circe-generic" % circeV,
"io.circe" %% "circe-parser" % circeV,
// Sugar for serialization and deserialization in akka-http with circe
"de.heikoseeberger" %% "akka-http-circe" % "1.36.0",
// Validation library
"com.wix" %% "accord-core" % "0.7.6",
// Http client, used currently only for IT test
"com.softwaremill.sttp.client3" %% "core" % sttpV % Test,
"com.softwaremill.sttp.client3" %% "akka-http-backend" % sttpV % Test,
"com.typesafe.akka" %% "akka-testkit" % akkaV % Test,
"com.typesafe.akka" %% "akka-stream-testkit" % akkaV % Test,
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpV % Test,
"org.scalatest" %% "scalatest" % scalaTestV % Test,
"org.mockito" %% "mockito-scala-scalatest" % "1.16.32" % Test,
"ru.yandex.qatools.embed" % "postgresql-embedded" % "2.10" % Test
)
}
enablePlugins(UniversalPlugin)
enablePlugins(DockerPlugin)
// Needed for Heroku deployment, can be removed
enablePlugins(JavaAppPackaging)