-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.sbt
37 lines (36 loc) · 1.69 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
lazy val root = (project in file("."))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-bobby",
sbtPlugin := true,
majorVersion := 5,
isPublicArtefact := true,
scalaVersion := "2.12.18",
crossSbtVersions := Vector("1.9.9"),
libraryDependencies ++= Seq(
"com.lihaoyi" %% "fansi" % "0.4.0",
"com.typesafe.play" %% "play-json" % "2.9.4",
"org.scalatest" %% "scalatest" % "3.2.15" % Test,
"com.vladsch.flexmark" % "flexmark-all" % "0.64.6" % Test,
"org.scalacheck" %% "scalacheck" % "1.17.0" % Test,
"org.scalatestplus" %% "scalatestplus-scalacheck" % "3.1.0.0-RC2" % Test
),
scriptedLaunchOpts := {
val homeDir = sys.props.get("jenkins.home")
.orElse(sys.props.get("user.home"))
.getOrElse("")
scriptedLaunchOpts.value ++
Seq(
"-Xmx1024M",
"-Dplugin.version=" + version.value,
s"-Dsbt.override.build.repos=${sys.props.getOrElse("sbt.override.build.repos", "false")}",
// s"-Dsbt.global.base=$sbtHome/.sbt",
// Global base is overwritten with <tmp scripted>/global and can not be reconfigured
// We have to explicitly set all the params that rely on base
s"-Dsbt.boot.directory=${file(homeDir) / ".sbt" / "boot"}",
s"-Dsbt.repository.config=${file(homeDir) / ".sbt" / "repositories"}",
s"-Dsbt.boot.properties=file:///${file(homeDir) / ".sbt" / "sbt.boot.properties"}",
)
},
scriptedBufferLog := false
)