-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.sbt
79 lines (72 loc) · 2.72 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
// *****************************************************************************
// Projects
// *****************************************************************************
lazy val `jwt-akka-http` =
project
.in(file("."))
.enablePlugins(AutomateHeaderPlugin)
.settings(settings)
.settings(
libraryDependencies ++= Seq(
library.akkaHttp,
library.akkaHttpCirce,
library.authentikatJwt,
library.circeGeneric,
library.akkaTestkit % Test,
library.akkaHttpTest % Test,
library.scalaCheck % Test,
library.scalaTest % Test
)
)
// *****************************************************************************
// Library dependencies
// *****************************************************************************
lazy val library =
new {
object Version {
val akka = "2.5.23"
val akkaHttp = "10.1.9"
val akkaHttpCirce = "1.27.0"
val authentikatJwt = "0.4.5"
val circeGeneric = "0.11.1"
val scalaCheck = "1.14.0"
val scalaTest = "3.0.8"
}
val akkaHttp = "com.typesafe.akka" %% "akka-http" % Version.akkaHttp
val akkaHttpCirce = "de.heikoseeberger" %% "akka-http-circe" % Version.akkaHttpCirce
val authentikatJwt = "com.jason-goodwin" %% "authentikat-jwt" % Version.authentikatJwt
val circeGeneric = "io.circe" %% "circe-generic" % Version.circeGeneric
// Testing libs
val akkaHttpTest = "com.typesafe.akka" %% "akka-http-testkit" % Version.akkaHttp
val akkaTestkit = "com.typesafe.akka" %% "akka-testkit" % Version.akka
val scalaCheck = "org.scalacheck" %% "scalacheck" % Version.scalaCheck
val scalaTest = "org.scalatest" %% "scalatest" % Version.scalaTest
}
// *****************************************************************************
// Settings
// *****************************************************************************
lazy val settings =
commonSettings ++
scalafmtSettings
lazy val commonSettings =
Seq(
// scalaVersion from .travis.yml via sbt-travisci
// scalaVersion := "2.12.2",
organization := "ba.codecentric",
organizationName := "Branislav Lazic",
startYear := Some(2017),
licenses += ("MIT", url("https://opensource.org/licenses/MIT")),
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-language:_",
"-target:jvm-1.8",
"-encoding", "UTF-8"
),
unmanagedSourceDirectories.in(Compile) := Seq(scalaSource.in(Compile).value),
unmanagedSourceDirectories.in(Test) := Seq(scalaSource.in(Test).value)
)
lazy val scalafmtSettings =
Seq(
scalafmtOnCompile := true,
)