Created
September 13, 2011 10:48
-
-
Save arturaz/1213581 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lazy val dist = TaskKey[Unit]( | |
"dist", "Creates a project distribution in dist/ folder." | |
) | |
def distTask = | |
dist <<= | |
dist.dependsOn(compile, packageBin) <<= | |
(update, crossTarget).map { case (updateReport, out) => | |
updateReport.allFiles.foreach { srcPath => | |
val destPath = out / "lib" / srcPath.getName | |
IO.copyFile(srcPath, destPath, preserveLastModified=true) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment