summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2016-03-16 21:55:08 +0100
committerLukas Rytz <lukas.rytz@gmail.com>2016-03-21 11:51:50 +0100
commit5f5cc186cbedff6dc55993cb3b0dcfe36038efa1 (patch)
tree4ae24b81f24faa8f645e5a8d3732aef116c34c79 /project
parentafb14588edeb199ad5b6b2deedb55abe3c998503 (diff)
downloadscala-5f5cc186cbedff6dc55993cb3b0dcfe36038efa1.tar.gz
scala-5f5cc186cbedff6dc55993cb3b0dcfe36038efa1.tar.bz2
scala-5f5cc186cbedff6dc55993cb3b0dcfe36038efa1.zip
Update IntelliJ build for use with sbt
Diffstat (limited to 'project')
-rw-r--r--project/plugins.sbt12
-rw-r--r--project/project/plugins.sbt1
2 files changed, 13 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"
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")