-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
41 lines (36 loc) · 1.36 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
initialize := {
initialize.value
val required = "1.8"
val current = sys.props("java.specification.version")
if (current != required)
sys.error(s"Found JDK $current but JDK $required is required.")
}
lazy val `sbt-scalabench` = project in file(".")
name := "sbt-scalabench"
organization := "com.triplequote"
organizationName := "Triplequote LLC"
homepage := Some(url("https://github.com/triplequote/sbt-scalabench"))
organizationHomepage := Some(url("https://triplequote.com"))
startYear := Some(2019)
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
scmInfo := Some(ScmInfo(url("https://github.com/triplequote/sbt-scalabench"), "scm:git:[email protected]:triplequote/sbt-scalabench.git"))
description := "Sbt plugin to benchmark Scala compilation."
sbtPlugin := true
crossSbtVersions := Vector("1.0.0", "0.13.13")
publishMavenStyle := false
publishTo := Some(Resolver.url(s"Triplequote Plugins Releases", url("https://repo.triplequote.com/artifactory/sbt-plugins-release"))(Resolver.ivyStylePatterns))
// Release
import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
releaseStepCommandAndRemaining("^test"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("^publish"),
setNextVersion,
commitNextVersion,
pushChanges
)