diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-03 23:44:39 -0700 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-03 23:44:39 -0700 |
commit | 13270145903b457c906a9fa77bd152afb6448ef5 (patch) | |
tree | e85b7ed530e0c8e3c3041cbf17641857c448b602 /build.sbt | |
parent | 66f1c5c2438aeb8f2496575f52c25b09cf5793a6 (diff) | |
download | mill-13270145903b457c906a9fa77bd152afb6448ef5.tar.gz mill-13270145903b457c906a9fa77bd152afb6448ef5.tar.bz2 mill-13270145903b457c906a9fa77bd152afb6448ef5.zip |
Split up forge into `scalaplugin` an `core` subprojects, to allow us to use the `T#apply` macro in the implementation of `scalaplugin.Subproject`
Also needed to implement inter-`Subproject` dependencies so the `MetacircularTests` can continue to support the new layout
Diffstat (limited to 'build.sbt')
-rw-r--r-- | build.sbt | 55 |
1 files changed, 32 insertions, 23 deletions
@@ -1,29 +1,38 @@ -scalaVersion := "2.12.4" +val sharedSettings = Seq( + scalaVersion := "2.12.4", + organization := "com.lihaoyi", + libraryDependencies += "com.lihaoyi" %% "utest" % "0.6.0" % "test", -name := "forge" + testFrameworks += new TestFramework("forge.UTestFramework"), -organization := "com.lihaoyi" + parallelExecution in Test := false, + test in assembly := {}, -libraryDependencies += "com.lihaoyi" %% "utest" % "0.6.0" % "test" - -testFrameworks += new TestFramework("forge.Framework") - -parallelExecution in Test := false - -libraryDependencies ++= Seq( - "org.scala-lang" % "scala-reflect" % scalaVersion.value % "provided", - "com.lihaoyi" %% "sourcecode" % "0.1.4", - "com.lihaoyi" %% "pprint" % "0.5.3", - "com.lihaoyi" % "ammonite" % "1.0.3" cross CrossVersion.full, - "com.typesafe.play" %% "play-json" % "2.6.6", - "org.scala-sbt" %% "zinc" % "1.0.3" + assemblyOption in assembly := (assemblyOption in assembly).value.copy( + prependShellScript = Some( + // G1 Garbage Collector is awesome https://github.com/lihaoyi/Ammonite/issues/216 + Seq("#!/usr/bin/env sh", """exec java -jar -Xmx500m -XX:+UseG1GC $JAVA_OPTS "$0" "$@"""") + ) + ) ) -test in assembly := {} - -assemblyOption in assembly := (assemblyOption in assembly).value.copy( - prependShellScript = Some( - // G1 Garbage Collector is awesome https://github.com/lihaoyi/Ammonite/issues/216 - Seq("#!/usr/bin/env sh", """exec java -jar -Xmx500m -XX:+UseG1GC $JAVA_OPTS "$0" "$@"""") +lazy val core = project + .settings( + sharedSettings, + name := "forge-core", + libraryDependencies ++= Seq( + "org.scala-lang" % "scala-reflect" % scalaVersion.value % "provided", + "com.lihaoyi" %% "sourcecode" % "0.1.4", + "com.lihaoyi" %% "pprint" % "0.5.3", + "com.lihaoyi" % "ammonite" % "1.0.3" cross CrossVersion.full, + "com.typesafe.play" %% "play-json" % "2.6.6", + "org.scala-sbt" %% "zinc" % "1.0.3" + ) ) -)
\ No newline at end of file + +lazy val scalaplugin = project + .dependsOn(core % "compile->compile;test->test") + .settings( + sharedSettings, + name := "forge-scalaplugin" + )
\ No newline at end of file |