summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt10
1 files changed, 6 insertions, 4 deletions
diff --git a/build.sbt b/build.sbt
index c0e8a4fb0d..842bf41d23 100644
--- a/build.sbt
+++ b/build.sbt
@@ -70,7 +70,7 @@ lazy val commonSettings = Seq[Setting[_]](
scalaSource in Compile := (sourceDirectory in Compile).value,
javaSource in Compile := (sourceDirectory in Compile).value,
target := (baseDirectory in ThisBuild).value / "target" / name.value,
- classDirectory in Compile := (baseDirectory in ThisBuild).value / "build/quick/classes" / name.value,
+ classDirectory in Compile := buildDirectory.value / "quick/classes" / name.value,
artifactPath in packageBin in Compile := {
// two lines below are copied over from sbt's sources:
// https://github.com/sbt/sbt/blob/0.13/main/src/main/scala/sbt/Defaults.scala#L628
@@ -80,7 +80,7 @@ lazy val commonSettings = Seq[Setting[_]](
// uncomment the other definition of the `resolvedArtifactName`
val resolvedArtifact = artifact.value
val resolvedArtifactName = s"${resolvedArtifact.name}.${resolvedArtifact.extension}"
- (baseDirectory in ThisBuild).value / "build/pack/lib" / resolvedArtifactName
+ buildDirectory.value / "pack/lib" / resolvedArtifactName
},
// given that classDirectory is overriden to be _outside_ of target directory, we have
// to make sure its being cleaned properly
@@ -158,8 +158,8 @@ def configureAsSubproject(project: Project): Project = {
(project in base).settings(commonSettings: _*)
}
-lazy val copyrightString = SettingKey[String]("Copyright string.")
-
+lazy val buildDirectory = settingKey[File]("The directory where all build products go. By default ./build")
+lazy val copyrightString = settingKey[String]("Copyright string.")
lazy val generateVersionPropertiesFile = taskKey[File]("Generating version properties file.")
lazy val generateVersionPropertiesFileImpl: Def.Initialize[Task[File]] = Def.task {
@@ -208,3 +208,5 @@ lazy val generateVersionPropertiesFileImpl: Def.Initialize[Task[File]] = Def.tas
propFile
}
+
+buildDirectory in ThisBuild := (baseDirectory in ThisBuild).value / "build-sbt"