From 083cd8c4e3fe6c73755d9162b275d9683778f1a2 Mon Sep 17 00:00:00 2001 From: Grzegorz Kossakowski Date: Thu, 19 Feb 2015 16:16:33 +0100 Subject: Split `commonSettings` into smaller chunks. Move most of `commonSettings` to `subprojectSettings` and keep `commonSettings` truly minimal. --- build.sbt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'build.sbt') diff --git a/build.sbt b/build.sbt index 842bf41d23..14f05bb550 100644 --- a/build.sbt +++ b/build.sbt @@ -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") -- cgit v1.2.3