Skip to content

Instantly share code, notes, and snippets.

@strobe
Last active October 26, 2017 05:15
Show Gist options
  • Save strobe/2144b8ff25ef7023f86211b6f886f796 to your computer and use it in GitHub Desktop.
Save strobe/2144b8ff25ef7023f86211b6f886f796 to your computer and use it in GitHub Desktop.
sbt exclude from resoures
excludeFilter in unmanagedResources := "*.xml"
excludeFilter in unmanagedResources := {
new SimpleFileFilter(_.getCanonicalPath endsWith "logback.xml")
}
excludeFilter in unmanagedResources := {
val public = ((resourceDirectory in Compile).value / "com" / "example" / "export" / "dev").getCanonicalPath
new SimpleFileFilter(_.getCanonicalPath startsWith public)
}
excludeFilter in unmanagedSources := HiddenFileFilter || "*impl*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment