Skip to content

Instantly share code, notes, and snippets.

@josephpconley
Created February 10, 2014 13:41
Show Gist options
  • Save josephpconley/8916138 to your computer and use it in GitHub Desktop.
Save josephpconley/8916138 to your computer and use it in GitHub Desktop.
Trying to get custom packaging to work...to no avail
lazy val CustomPackage = config("custompackage") extend(Compile) describedAs("Custom package configuration")
mappings in (CustomPackage, packageBin) ~= { (ms: Seq[(File, String)]) =>
ms filter {
case (file, toPath) => {
val shouldInclude = toPath.startsWith("models")
println("===========" + file + " " + toPath + " " + shouldInclude)
shouldInclude
}
}
}
lazy val root = project in file(".") overrideConfigs (CustomPackage)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment