forked from CodelyTV/scala-ddd-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
29 lines (21 loc) · 1.14 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
name := "CodelyTV Scala HTTP API"
version := "1.0"
Configuration.settings
libraryDependencies ++= Dependencies.production
libraryDependencies ++= Dependencies.test
enablePlugins(JavaAppPackaging) // App packaging. More info: https://github.com/sbt/sbt-native-packager
addCommandAlias("t", "test")
addCommandAlias("to", "testOnly")
addCommandAlias("tq", "testQuick")
addCommandAlias("tsf", "testShowFailed")
addCommandAlias("c", "compile")
addCommandAlias("tc", "test:compile")
addCommandAlias("f", "scalafmt") // Format production files according to ScalaFmt
addCommandAlias("fc", "scalafmtCheck") // Check if production files are formatted according to ScalaFmt
addCommandAlias("tf", "test:scalafmt") // Format test files according to ScalaFmt
addCommandAlias("tfc", "test:scalafmtCheck") // Check if test files are formatted according to ScalaFmt
// All the needed tasks before pushing to the repository (compile, compile test, format check in prod and test)
addCommandAlias("prep", ";c;tc;fc;tfc")
TaskKey[Unit]("createDbTables") := (runMain in Compile)
.toTask(" tv.codely.scala_http_api.entry_point.cli.DbTablesCreator")
.value