forked from reibitto/sbt-test-shards
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
51 lines (44 loc) · 1.85 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
39
40
41
42
43
44
45
46
47
48
49
50
51
import sbtwelcome._
inThisBuild(
List(
organization := "com.github.reibitto",
homepage := Some(url("https://github.com/reibitto/sbt-test-shards")),
licenses := List("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer("reibitto", "reibitto", "[email protected]", url("https://reibitto.github.io"))
)
)
)
lazy val root = (project in file(".")).settings(
name := "sbt-test-shards",
organization := "com.github.reibitto",
scalaVersion := "2.12.16",
sbtPlugin := true
)
addCommandAlias("fmt", "all root/scalafmtSbt root/scalafmtAll")
addCommandAlias("fmtCheck", "all root/scalafmtSbtCheck root/scalafmtCheckAll")
logo :=
s"""
| ______ _____
| __________ /___ /_
| __ ___/_ __ \\ __/
| _(__ )_ /_/ / /_
| /____/ /_.___/\\__/
| _____ _____ ______ _________
| __ /______________ /_ __________ /_______ _____________ /_______
| _ __/ _ \\_ ___/ __/ __ ___/_ __ \\ __ `/_ ___/ __ /__ ___/
| / /_ / __/(__ )/ /_ _(__ )_ / / / /_/ /_ / / /_/ / _(__ )
| \\__/ \\___//____/ \\__/ /____/ /_/ /_/\\__,_/ /_/ \\__,_/ /____/
|
|${version.value}
|
|${scala.Console.YELLOW}Scala ${scalaVersion.value}${scala.Console.RESET}
|
|""".stripMargin
usefulTasks := Seq(
UsefulTask("a", "~compile", "Compile with file-watch enabled"),
UsefulTask("b", "fmt", "Run scalafmt on the entire project"),
UsefulTask("c", "publishLocal", "Publish the sbt plugin locally so that you can consume it from a different project")
)
logoColor := scala.Console.MAGENTA
ThisBuild / organization := "com.github.reibitto"