Skip to content

Instantly share code, notes, and snippets.

@arturaz
Created September 13, 2011 10:48
Show Gist options
  • Save arturaz/1213581 to your computer and use it in GitHub Desktop.
Save arturaz/1213581 to your computer and use it in GitHub Desktop.
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