-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
38 lines (33 loc) · 1.36 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
import Dependencies._
ThisBuild / organization := "ba.sake"
ThisBuild / version := "0.0.1"
ThisBuild / scalaVersion := "3.3.1"
ThisBuild / fork := true
ThisBuild / scalacOptions := optionsOnOrElse("2.13", "2.12")("-Ywarn-unused")("").value
ThisBuild / semanticdbEnabled := true
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision
ThisBuild / scalafixDependencies ++= List("com.github.liancheng" %% "organize-imports" % "0.6.0")
def settingsApp = Seq(
name := "hepek-zio-example",
Compile / run / mainClass := Option("ba.sake.hepek.zio_example.MainApp"),
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
libraryDependencies ++= Seq(
zioHttp,
zioTest,
zioTestSBT,
zioTestMagnolia,
"ba.sake" %% "hepek-zio" % "0.21.0"
),
)
def settingsDocker = Seq(
Docker / version := version.value,
dockerBaseImage := "eclipse-temurin:20.0.1_9-jre",
)
lazy val root = (project in file("."))
.enablePlugins(JavaAppPackaging)
.settings(settingsApp)
.settings(settingsDocker)
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")