Skip to content

Instantly share code, notes, and snippets.

@sam
Created August 26, 2016 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sam/1dee9c9cf205c3c6805821bfe3a7bae4 to your computer and use it in GitHub Desktop.
Save sam/1dee9c9cf205c3c6805821bfe3a7bae4 to your computer and use it in GitHub Desktop.
There's got to be a better way...
// Don't include private.conf in main package.
mappings in (Compile, packageBin) ~= {
_ filter {
case (_, "private.conf") => false
case _ => true
}
}
// Don't include private.conf in main sources package.
mappings in (Compile, packageSrc) ~= {
_ filter {
case (_, "private.conf") => false
case _ => true
}
}
// Don't include private.conf in test package.
mappings in (Test, packageBin) ~= {
_ filter {
case (_, "private.conf") => false
case _ => true
}
}
// Don't include private.conf in test sources package.
mappings in (Test, packageSrc) ~= {
_ filter {
case (_, "private.conf") => false
case _ => true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment