-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
32 lines (29 loc) · 1.06 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
import Dependencies._
// give the user a nice default project!
ThisBuild / organization := "org.d11"
ThisBuild / version := "1.0.0"
ThisBuild / resolvers += "zio-http-snapshot" at "https://s01.oss.sonatype.org/content/repositories/snapshots"
lazy val root = (project in file("."))
.enablePlugins(JavaAppPackaging)
.settings(BuildHelper.stdSettings)
.settings(
name := "zio-world",
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
libraryDependencies ++= Seq(
`zio-test`,
`zio-test-sbt`,
`zio-http`,
`zio-http-test`
),
)
.settings(
Docker / version := version.value,
Compile / run / mainClass := Option("org.d11.zioworld.experimental.RequestStreaming"),
)
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",
)