diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2015-02-19 16:16:33 +0100 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2015-04-17 11:40:35 -0700 |
commit | 083cd8c4e3fe6c73755d9162b275d9683778f1a2 (patch) | |
tree | e9677c0015e873e8e1fb756ce0e6622b7ca1e6c0 | |
parent | a5e64642bc706dd781708d218deaafbf34ed5da8 (diff) | |
download | scala-083cd8c4e3fe6c73755d9162b275d9683778f1a2.tar.gz scala-083cd8c4e3fe6c73755d9162b275d9683778f1a2.tar.bz2 scala-083cd8c4e3fe6c73755d9162b275d9683778f1a2.zip |
Split `commonSettings` into smaller chunks.
Move most of `commonSettings` to `subprojectSettings` and keep
`commonSettings` truly minimal.
-rw-r--r-- | build.sbt | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -64,7 +64,10 @@ lazy val commonSettings = Seq[Setting[_]]( // we don't want any unmanaged jars; as a reminder: unmanaged jar is a jar stored // directly on the file system and it's not resolved through Ivy // Ant's build stored unmanaged jars in `lib/` directory - unmanagedJars in Compile := Seq.empty, + unmanagedJars in Compile := Seq.empty +) + +lazy val subprojectSettings = commonSettings ++ Seq[Setting[_]]( sourceDirectory in Compile := baseDirectory.value, sourceDirectories in Compile := Seq(sourceDirectory.value), scalaSource in Compile := (sourceDirectory in Compile).value, @@ -155,7 +158,7 @@ lazy val root = (project in file(".")). */ def configureAsSubproject(project: Project): Project = { val base = file(".") / "src" / project.id - (project in base).settings(commonSettings: _*) + (project in base).settings(subprojectSettings: _*) } lazy val buildDirectory = settingKey[File]("The directory where all build products go. By default ./build") |