diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-09 00:14:47 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-09 08:17:47 -0800 |
commit | 8ddd2fa054bc8639c28db2e95b7903e2954fdb7d (patch) | |
tree | aa985f1e715f07eb279e6facad61de8a187e316c /build.sbt | |
parent | 90d0a3388d280554eaa51371f666d2f7a965a8af (diff) | |
download | mill-8ddd2fa054bc8639c28db2e95b7903e2954fdb7d.tar.gz mill-8ddd2fa054bc8639c28db2e95b7903e2954fdb7d.tar.bz2 mill-8ddd2fa054bc8639c28db2e95b7903e2954fdb7d.zip |
.
Diffstat (limited to 'build.sbt')
-rw-r--r-- | build.sbt | 21 |
1 files changed, 16 insertions, 5 deletions
@@ -73,14 +73,24 @@ lazy val core = project 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-21-05b5d32" cross CrossVersion.full ), sourceGenerators in Compile += { ammoniteRun(sourceManaged in Compile, List("shared.sc", "generateCoreSources", _)) .taskValue .map(x => (x ** "*.scala").get) - }, + } + ) + +lazy val main = project + .dependsOn(core) + .settings( + sharedSettings, + pluginSettings, + name := "mill-main", + libraryDependencies ++= Seq( + "org.scala-lang" % "scala-reflect" % scalaVersion.value % "provided" + ), sourceGenerators in Test += { ammoniteRun(sourceManaged in Test, List("shared.sc", "generateCoreTestSources", _)) @@ -105,7 +115,7 @@ lazy val scalaWorkerProps = Def.task{ } lazy val scalalib = project - .dependsOn(core % "compile->compile;test->test") + .dependsOn(main % "compile->compile;test->test") .settings( sharedSettings, pluginSettings, @@ -118,7 +128,7 @@ lazy val scalalib = project ) lazy val scalaworker: Project = project - .dependsOn(core, scalalib) + .dependsOn(main, scalalib) .settings( sharedSettings, pluginSettings, @@ -140,6 +150,7 @@ def genTask(m: Project) = Def.task{ ( genTask(moduledefs).value ++ genTask(core).value ++ + genTask(main).value ++ genTask(scalalib).value ++ genTask(scalajslib).value ).mkString(",") @@ -220,7 +231,7 @@ val testRepos = Map( ) lazy val integration = project - .dependsOn(core % "compile->compile;test->test", scalalib, scalajslib) + .dependsOn(main % "compile->compile;test->test", scalalib, scalajslib) .settings( sharedSettings, name := "integration", |