generated from jatcwang/scala_starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
30 lines (28 loc) · 849 Bytes
/
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
//val doobieVersion = "<SET_THIS_DOOBIE_VERSION>"
//val doobieVersion = "1.0.0-RC5"
//val doobieVersion = "1.0-<COMMIT_SHORT_HASH>-SNAPSHOT"
lazy val root = Project("root", file("."))
.settings(commonSettings)
.settings(
name := "Doobie",
libraryDependencies ++= Seq(
"org.tpolecat" %% "doobie-core" % doobieVersion,
"org.tpolecat" %% "doobie-postgres" % doobieVersion,
"org.postgresql" % "postgresql" % "42.5.3",
),
)
lazy val commonSettings = Seq(
version := "0.1.0",
// scalaVersion := "<SET_THIS_SCALA_VERSION>",
// scalaVersion := "3.4.2",
// scalaVersion := "2.13.14",
scalacOptions --= {
if (sys.env.get("CI").isDefined) {
Seq.empty
} else {
Seq("-Xfatal-warnings")
}
},
scalacOptions ++= Seq("-Xsource:3"),
resolvers ++= Resolver.sonatypeOssRepos("snapshots"),
)