playframework 2.0 - Excluding unmanaged dependencies from universal:packageBin in sbt-native-packager? -
i have external lib directory jars. need these included in classpath in order compile , test project not want include them in distributed zip file generated via universal:packagebin
(in sbt-native-packager) (or dist
if you're using playframework
.
i attempted using provided
scope follows:
unmanagedbase in provided := new java.io.file("/external/lib")
but doesn't seem work advertised - jars don't seem included in compile
scope.
i using sbt 0.13.1.
this works (thanks @jacek-laskowski improvements answer):
mappings in universal := (mappings in universal).value.filter { case(jar, _) => jar.getparentfile != unmanagedbase.value }
but, still feels kludge, prefer if sbt
(and sbt-native-packager
) support provided
scope scenario meant for.
Comments
Post a Comment