forked from mdr/ascii-graphs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
57 lines (54 loc) · 1.55 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
52
53
54
55
56
57
def scala213 = "2.13.5"
def scala212 = "2.12.13"
inThisBuild(
List(
organization := "org.scalameta",
homepage := Some(url("https://github.com/olafurpg/sbt-ci-release")),
licenses :=
List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers :=
List(
Developer(
"mdr",
"Matt Russell",
"noreply@github.com",
url("https://github.com/mdr")
),
Developer(
"olafurpg",
"Ólafur Páll Geirsson",
"olafurpg@gmail.com",
url("https://geirsson.com")
)
),
scalaVersion := scala213,
crossScalaVersions := Seq(scala213, scala212),
scalacOptions ++= Seq("-Xlint:unused"),
javacOptions ++= Seq("-source", "1.8", "-target", "1.8"),
scalafixDependencies +=
"com.github.liancheng" %% "organize-imports" % "0.5.0",
scalafixCaching := true,
semanticdbEnabled := true,
semanticdbVersion := "4.4.10"
)
)
commands +=
Command.command("fixAll") { s =>
"scalafixAll" :: "scalafmtAll" :: "scalafmtSbt" :: "javafmtAll" :: s
}
commands +=
Command.command("checkAll") { s =>
"scalafmtCheckAll" :: "scalafmtSbtCheck" :: "scalafixAll --check" ::
"javafmtCheckAll" :: "publishLocal" :: s
}
skip.in(publish) := true
lazy val graphs = project
.in(file("ascii-graphs"))
.settings(
moduleName := "ascii-graphs",
libraryDependencies ++=
List(
"org.scalatest" %% "scalatest" % "3.0.9" % Test,
"org.scalacheck" %% "scalacheck" % "1.14.3" % Test
)
)