summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorGrzegorz Kossakowski <grzegorz.kossakowski@gmail.com>2015-02-19 16:16:33 +0100
committerAdriaan Moors <adriaan.moors@typesafe.com>2015-04-17 11:40:35 -0700
commit083cd8c4e3fe6c73755d9162b275d9683778f1a2 (patch)
treee9677c0015e873e8e1fb756ce0e6622b7ca1e6c0 /build.sbt
parenta5e64642bc706dd781708d218deaafbf34ed5da8 (diff)
downloadscala-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.
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt7
1 files changed, 5 insertions, 2 deletions
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")