-
Notifications
You must be signed in to change notification settings - Fork 211
/
build.sbt
81 lines (67 loc) · 2.94 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
organization := "io.github.pauljamescleary"
name := "scala-pet-store"
version := "0.0.1-SNAPSHOT"
crossScalaVersions := Seq("2.12.15", "2.13.6")
resolvers += Resolver.sonatypeRepo("snapshots")
val CatsVersion = "2.6.1"
val CirceVersion = "0.14.1"
val CirceGenericExVersion = "0.14.1"
val CirceConfigVersion = "0.8.0"
val DoobieVersion = "0.13.4"
val EnumeratumCirceVersion = "1.7.0"
val H2Version = "1.4.200"
val Http4sVersion = "0.21.28"
val KindProjectorVersion = "0.13.2"
val LogbackVersion = "1.2.6"
val Slf4jVersion = "1.7.30"
val ScalaCheckVersion = "1.15.4"
val ScalaTestVersion = "3.2.9"
val ScalaTestPlusVersion = "3.2.2.0"
val FlywayVersion = "7.15.0"
val TsecVersion = "0.2.1"
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % CatsVersion,
"io.circe" %% "circe-generic" % CirceVersion,
"io.circe" %% "circe-literal" % CirceVersion,
"io.circe" %% "circe-generic-extras" % CirceGenericExVersion,
"io.circe" %% "circe-parser" % CirceVersion,
"io.circe" %% "circe-config" % CirceConfigVersion,
"org.tpolecat" %% "doobie-core" % DoobieVersion,
"org.tpolecat" %% "doobie-h2" % DoobieVersion,
"org.tpolecat" %% "doobie-scalatest" % DoobieVersion,
"org.tpolecat" %% "doobie-hikari" % DoobieVersion,
"com.beachape" %% "enumeratum-circe" % EnumeratumCirceVersion,
"com.h2database" % "h2" % H2Version,
"org.http4s" %% "http4s-blaze-server" % Http4sVersion,
"org.http4s" %% "http4s-circe" % Http4sVersion,
"org.http4s" %% "http4s-dsl" % Http4sVersion,
"ch.qos.logback" % "logback-classic" % LogbackVersion,
"org.flywaydb" % "flyway-core" % FlywayVersion,
"org.http4s" %% "http4s-blaze-client" % Http4sVersion % Test,
"org.scalacheck" %% "scalacheck" % ScalaCheckVersion % Test,
"org.scalatest" %% "scalatest" % ScalaTestVersion % Test,
"org.scalatestplus" %% "scalacheck-1-14" % ScalaTestPlusVersion % Test,
// Authentication dependencies
"io.github.jmcardon" %% "tsec-common" % TsecVersion,
"io.github.jmcardon" %% "tsec-password" % TsecVersion,
"io.github.jmcardon" %% "tsec-mac" % TsecVersion,
"io.github.jmcardon" %% "tsec-signatures" % TsecVersion,
"io.github.jmcardon" %% "tsec-jwt-mac" % TsecVersion,
"io.github.jmcardon" %% "tsec-jwt-sig" % TsecVersion,
"io.github.jmcardon" %% "tsec-http4s" % TsecVersion,
)
dependencyOverrides += "org.slf4j" % "slf4j-api" % Slf4jVersion
addCompilerPlugin(
("org.typelevel" %% "kind-projector" % KindProjectorVersion).cross(CrossVersion.full),
)
enablePlugins(ScalafmtPlugin, JavaAppPackaging, GhpagesPlugin, MicrositesPlugin, MdocPlugin)
// Microsite settings
git.remoteRepo := "[email protected]:pauljamescleary/scala-pet-store.git"
micrositeGithubOwner := "pauljamescleary"
micrositeGithubRepo := "scala-pet-store"
micrositeName := "Scala Pet Store"
micrositeDescription := "An example application using FP techniques in Scala"
micrositeBaseUrl := "scala-pet-store"
// Note: This fixes error with sbt run not loading config properly
fork in run := true
dockerExposedPorts ++= Seq(8080)