forked from sirocchj/sbt-api-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
40 lines (39 loc) · 1.94 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
lazy val publishSettings = Seq(
licenses += "MIT" -> url("http://opensource.org/licenses/MIT"),
homepage := Some(url("https://github.com/laserdisc-io/sbt-api-builder")),
developers := List(
Developer("sirocchj", "Julien Sirocchi", "[email protected]", url("https://github.com/sirocchj")),
Developer("barryoneill", "Barry O'Neill", "", url("https://github.com/barryoneill"))
),
scmInfo := Some(
ScmInfo(url("https://github.com/laserdisc-io/sbt-api-builder"), "scm:git:[email protected]:laserdisc-io/sbt-api-builder.git")
)
)
lazy val `sbt-api-builder` = project
.in(file("."))
.settings(publishSettings)
.settings(
organization := "io.laserdisc",
name := "sbt-api-builder",
Dependencies.Circe,
Dependencies.Gigahorse,
scriptedLaunchOpts ++= Seq("-Xmx1024M", s"-Dplugin.version=${version.value}"),
scalacOptions ++= Seq(
"-encoding",
"UTF-8", // source files are in UTF-8
"-deprecation", // warn about use of deprecated APIs
"-unchecked", // warn about unchecked type parameters
"-feature", // warn about misused language features
"-language:higherKinds", // allow higher kinded types without `import scala.language.higherKinds`
"-language:implicitConversions", // allow use of implicit conversions
"-language:postfixOps", // postfix ops
"-Xlint", // enable handy linter warnings
"-Xfatal-warnings", // turn compiler warnings into errors
"-Ywarn-macros:after" // allows the compiler to resolve implicit imports being flagged as unused
),
addCommandAlias("format", ";scalafmtAll;scalafmtSbt"),
addCommandAlias("checkFormat", ";scalafmtCheckAll;scalafmtCheck"),
addCommandAlias("build", ";checkFormat;clean;test"),
addCommandAlias("release", "publish")
)
.enablePlugins(SbtPlugin)