How do I get SBT staging directory at build time?
问题 How do I get SBT staging directory at build time? I want to do a tricky clone of a remote repo, and the stagingDirectory of SBT seems to be a nice fit. How do I get the directory inside "Build.scala" ? SBT source code: http://www.scala-sbt.org/0.13.1/sxr/sbt/BuildPaths.scala.html#sbt.BuildPaths.stagingDirectory ======= Underlying problem NOT directly relevant to the question. I wanted to use a subdirectory of a git dependency in SBT. SBT doesn't provide this out of the box so I wrote a simple