-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
plugins.sbt
42 lines (27 loc) · 1.49 KB
/
plugins.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
scalacOptions ++= Seq("-unchecked", "-feature", "-deprecation",
"-Xlint:-unused,_", "-Xfatal-warnings")
libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.3.2"
libraryDependencies += "biz.aQute.bnd" % "biz.aQute.bnd" % "2.4.1"
enablePlugins(BuildInfoPlugin)
// configure sbt-buildinfo to send the externalDependencyClasspath to the main build, which allows using it for the IntelliJ project config
lazy val buildClasspath = taskKey[String]("Colon-separated (or semicolon-separated in case of Windows) list of entries on the sbt build classpath.")
buildClasspath := (Compile / externalDependencyClasspath).value.map(_.data).mkString(java.io.File.pathSeparator)
buildInfoKeys := Seq[BuildInfoKey](buildClasspath)
buildInfoPackage := "scalabuild"
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.8.1")
libraryDependencies ++= Seq(
"org.eclipse.jgit" % "org.eclipse.jgit" % "4.6.0.201612231935-r",
"org.slf4j" % "slf4j-nop" % "1.7.23",
"com.googlecode.java-diff-utils" % "diffutils" % "1.3.0",
)
Global / concurrentRestrictions := Seq(
Tags.limitAll(1) // workaround for https://github.com/sbt/sbt/issues/2970
)
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.3.4")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.0.0")
// See DottySupport.scala
if (Option(System.getProperty("scala.build.compileWithDotty")).map(_.toBoolean).getOrElse(false))
Seq(addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.5.2"))
else
Seq()
addSbtPlugin("com.lightbend" % "sbt-whitesource" % "0.1.18")