summaryrefslogtreecommitdiff
path: root/project/plugins.sbt
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@typesafe.com>2016-03-23 16:36:38 +0100
committerLukas Rytz <lukas.rytz@typesafe.com>2016-03-23 16:36:38 +0100
commit1fcfdd8c8bca1adba6eff2381ac6e765141801f0 (patch)
treec94d7b1e1ab7b1fa78c53e21b834ab16788a4c5b /project/plugins.sbt
parent4ef14294453c43420e0e1a2ac984ba4a2d8b8dca (diff)
parent2b3696ec4134f08ae37414f1406a87e746bc6128 (diff)
downloadscala-2.11.x.tar.gz
scala-2.11.x.tar.bz2
scala-2.11.x.zip
Merge pull request #5054 from lrytz/intellij-2.112.11.x
Update IntelliJ build for use with sbt
Diffstat (limited to 'project/plugins.sbt')
-rw-r--r--project/plugins.sbt12
1 files changed, 12 insertions, 0 deletions
diff --git a/project/plugins.sbt b/project/plugins.sbt
index c21824baf9..2d91c2306b 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" % "bndlib" % "1.50.0"
+
+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"