-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
63 lines (61 loc) · 2.76 KB
/
build.sbt
File metadata and controls
63 lines (61 loc) · 2.76 KB
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
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / scalaVersion := "3.7.1"
val catsVersion = "2.13.0"
val catsEffectVersion = "3.6.3"
val postgresVersion = "42.7.7"
val log4catsSlf4jVersion = "2.7.1"
val logbackVersion = "1.5.18"
val doobieVersion = "1.0.0-RC10"
val http4sVersion = "0.23.30"
val circeVersion = "0.14.14"
val scalatestVersion = "3.2.19"
val pureConfigCoreVersion = "0.17.9"
val catsEffectTestingScalatestVersion = "1.6.0"
val jwtCirceVersion = "11.0.2"
val password4jVersion = "1.8.4"
val emilVersion = "0.19.0"
val jMailVersion = "2.0.2"
val catsRetryVersion = "4.0.0"
lazy val root = (project in file("."))
.settings(
name := "postg",
scalacOptions ++= Seq("-deprecation", "-Xmax-inlines:64", "-language:strictEquality", "-Yexplicit-nulls"),
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "cats-effect" % catsEffectVersion,
"com.github.cb372" %% "cats-retry" % catsRetryVersion,
"org.postgresql" % "postgresql" % postgresVersion,
"org.tpolecat" %% "doobie-core" % doobieVersion,
"org.tpolecat" %% "doobie-postgres" % doobieVersion,
"org.tpolecat" %% "doobie-specs2" % doobieVersion,
"org.tpolecat" %% "doobie-hikari" % doobieVersion,
"org.http4s" %% "http4s-ember-client" % http4sVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.http4s" %% "http4s-ember-server" % http4sVersion,
"org.http4s" %% "http4s-circe" % http4sVersion,
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"io.circe" %% "circe-literal" % circeVersion,
"com.github.pureconfig" %% "pureconfig-core" % pureConfigCoreVersion,
"org.typelevel" %% "log4cats-slf4j" % log4catsSlf4jVersion,
"ch.qos.logback" % "logback-classic" % logbackVersion % Runtime,
"com.github.jwt-scala" %% "jwt-circe" % jwtCirceVersion,
"com.password4j" % "password4j" % password4jVersion,
"com.github.eikek" %% "emil-common" % emilVersion,
"com.github.eikek" %% "emil-javamail" % emilVersion,
"com.sanctionco.jmail" % "jmail" % jMailVersion,
"org.typelevel" %% "cats-effect-testing-scalatest" % catsEffectTestingScalatestVersion % Test,
"org.scalatest" %% "scalatest" % scalatestVersion % Test,
),
assembly / mainClass := Some("app.Main"),
assembly / assemblyJarName := "postg.jar",
assembly / assemblyMergeStrategy := {
case PathList("META-INF", "javamail.providers") => MergeStrategy.concat
case PathList("META-INF", "mailcap") => MergeStrategy.concat
case "module-info.class" => MergeStrategy.discard
case x =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(x)
},
)