-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.sbt
57 lines (51 loc) · 1.74 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
import spartanz.sbtorgpolicies.Formatting._
inThisBuild(
List(
scalafmtOnCompile := false,
scalafmtGenerateConfigOnLoad := {}
)
)
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
inThisBuild(
List(
organization := "org.spartanz",
homepage := Some(url("https://github.com/spartanz/parserz")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
scmInfo := Some(
ScmInfo(
url("https://github.com/spartanz/parserz"),
"scm:git:https://github.com/spartanz/parserz.git"
)
),
developers := List(
Developer(
"sergei-shabanau",
"Sergei Shabanau",
url("https://github.com/sergei-shabanau")
)
)
)
)
lazy val root =
(project in file("."))
.settings(
name := "parserz",
scalaVersion := "2.13.1",
crossScalaVersions := Seq("2.12.10", "2.13.1"),
scalacOptions --= Seq("-Yno-adapted-args", "-Ypartial-unification"),
libraryDependencies ++= Seq(
compilerPlugin(("org.typelevel" % "kind-projector" % "0.11.0").cross(CrossVersion.full)),
compilerPlugin(("com.github.ghik" % "silencer-plugin" % "1.6.0").cross(CrossVersion.full)),
("com.github.ghik" % "silencer-lib" % "1.6.0" % Provided).cross(CrossVersion.full),
"org.specs2" %% "specs2-core" % "4.8.0" % Test,
"com.lihaoyi" %% "fastparse" % "2.2.4" % Test,
)
)
.enablePlugins(BuildInfoPlugin)
.settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "spartanz.parserz",
buildInfoObject := "BuildInfo"
)