summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
Diffstat (limited to 'project')
-rw-r--r--project/PartestUtil.scala2
-rw-r--r--project/ScalaOptionParser.scala2
-rw-r--r--project/plugins.sbt12
-rw-r--r--project/project/plugins.sbt1
4 files changed, 15 insertions, 2 deletions
diff --git a/project/PartestUtil.scala b/project/PartestUtil.scala
index 4b18c94b47..8793e9c0a5 100644
--- a/project/PartestUtil.scala
+++ b/project/PartestUtil.scala
@@ -33,7 +33,7 @@ object PartestUtil {
val srcPathOption = "--srcpath"
val grepOption = "--grep"
- // HACK: if we parse `--srpath scaladoc`, we overwrite this var. The parser for test file paths
+ // HACK: if we parse `--srcpath scaladoc`, we overwrite this var. The parser for test file paths
// then lazily creates the examples based on the current value.
// TODO is there a cleaner way to do this with SBT's parser infrastructure?
var srcPath = "files"
diff --git a/project/ScalaOptionParser.scala b/project/ScalaOptionParser.scala
index 08a1de2e22..f2fd4d86d7 100644
--- a/project/ScalaOptionParser.scala
+++ b/project/ScalaOptionParser.scala
@@ -79,7 +79,7 @@ object ScalaOptionParser {
P <~ token(OptSpace)
}
- // TODO retrieve this data programatically, ala https://github.com/scala/scala-tool-support/blob/master/bash-completion/src/main/scala/BashCompletion.scala
+ // TODO retrieve this data programmatically, ala https://github.com/scala/scala-tool-support/blob/master/bash-completion/src/main/scala/BashCompletion.scala
private def booleanSettingNames = List("-X", "-Xcheckinit", "-Xdev", "-Xdisable-assertions", "-Xexperimental", "-Xfatal-warnings", "-Xfull-lubs", "-Xfuture", "-Xlog-free-terms", "-Xlog-free-types", "-Xlog-implicit-conversions", "-Xlog-implicits", "-Xlog-reflective-calls",
"-Xno-forwarders", "-Xno-patmat-analysis", "-Xno-uescape", "-Xnojline", "-Xprint-pos", "-Xprint-types", "-Xprompt", "-Xresident", "-Xshow-phases", "-Xstrict-inference", "-Xverify", "-Y",
"-Ybreak-cycles", "-Ydebug", "-Ycompact-trees", "-YdisableFlatCpCaching", "-Ydoc-debug",
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 02d66a16dd..23e71c1f26 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -3,3 +3,15 @@ libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.3.2"
libraryDependencies += "org.pantsbuild" % "jarjar" % "1.6.0"
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 list of entries on the sbt build classpath.")
+
+buildClasspath := (externalDependencyClasspath in Compile).value.map(_.data).mkString(":")
+
+buildInfoKeys := Seq[BuildInfoKey](buildClasspath)
+
+buildInfoPackage := "scalabuild"
diff --git a/project/project/plugins.sbt b/project/project/plugins.sbt
new file mode 100644
index 0000000000..04935e4560
--- /dev/null
+++ b/project/project/plugins.sbt
@@ -0,0 +1 @@
+addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.6.1")