-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
36 lines (33 loc) · 1.13 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
import Dependencies._
// give the user a nice default project!
ThisBuild / organization := "mbannour"
ThisBuild / version := "1.0.0"
lazy val root = (project in file("."))
.enablePlugins(JavaAppPackaging)
.settings(BuildHelper.stdSettings)
.settings(
name := "zio-http-mongoDB",
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
libraryDependencies ++= Seq(
`zio-test`,
`zio-test-sbt`,
`zio-http`,
zioMock,
`zio-http-test`,
zioJson,
mongoZio,
pureConfig,
) ++ logging,
)
.settings(
Test / testOptions ++= Seq(Tests.Setup(() => MongoEmbedded.start), Tests.Cleanup(() => MongoEmbedded.stop)),
Docker / version := version.value,
Compile / run / mainClass := Option("io.github.mbannour.demo.Main"),
)
addCommandAlias("fmt", "scalafmt; Test / scalafmt; sFix;")
addCommandAlias("fmtCheck", "scalafmtCheck; Test / scalafmtCheck; sFixCheck")
addCommandAlias("sFix", "scalafix OrganizeImports; Test / scalafix OrganizeImports")
addCommandAlias(
"sFixCheck",
"scalafix --check OrganizeImports; Test / scalafix --check OrganizeImports",
)