-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.sbt
38 lines (34 loc) · 1.41 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
lazy val root = (project in file("."))
.enablePlugins(SbtPlugin)
.settings(
crossScalaVersions := Seq("2.12.20"),
name := "sbt-boilerplate",
organization := "com.github.sbt",
description := "An SBT plugin for simple generation of boilerplate",
startYear := Some(2012),
homepage := Some(url("http://github.com/sbt/sbt-boilerplate")),
organizationHomepage := Some(url("http://spray.io")),
licenses in GlobalScope += "BSD" -> url("https://github.com/sbt/sbt-boilerplate/raw/master/LICENSE"),
scalacOptions := Seq("-deprecation", "-encoding", "utf8"),
libraryDependencies += "org.specs2" %% "specs2-core" % "4.20.9" % Test,
scriptedLaunchOpts ++= Seq("-Xmx1024M", "-Dproject.version=" + version.value),
pluginCrossBuild / sbtVersion := {
scalaBinaryVersion.value match {
case "2.12" => "1.9.7" // set minimum sbt version
}
},
developers += Developer(
"sbt-boilerplate ",
"Sbt Boilerplate Contributors",
"",
url("https://github.com/sbt/sbt-boilerplate/graphs/contributors")
),
)
// Customise sbt-dynver's behaviour to make it work with tags which aren't v-prefixed
ThisBuild / dynverVTagPrefix := true
// Sanity-check: assert that version comes from a tag (e.g. not a too-shallow clone)
// https://github.com/dwijnand/sbt-dynver/#sanity-checking-the-version
Global / onLoad := (Global / onLoad).value.andThen { s =>
dynverAssertTagVersion.value
s
}