From ab1abad0488d197317fe0bca1644bb38a0862054 Mon Sep 17 00:00:00 2001 From: Nepomuk Seiler Date: Sat, 23 Jan 2016 12:30:09 +0100 Subject: [PATCH] FIX #731 add options for zip and tarballs --- .../typesafe/sbt/packager/universal/UniversalPlugin.scala | 6 +++++- src/sbt-test/universal/test-zips/test | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/scala/com/typesafe/sbt/packager/universal/UniversalPlugin.scala b/src/main/scala/com/typesafe/sbt/packager/universal/UniversalPlugin.scala index 5f9188518..fe5d05418 100644 --- a/src/main/scala/com/typesafe/sbt/packager/universal/UniversalPlugin.scala +++ b/src/main/scala/com/typesafe/sbt/packager/universal/UniversalPlugin.scala @@ -92,7 +92,11 @@ object UniversalPlugin extends AutoPlugin { private[this] def defaultUniversalArchiveOptions: Seq[Setting[_]] = Seq( universalArchiveOptions in (Universal, packageZipTarball) := Seq("-pcvf"), - universalArchiveOptions in (Universal, packageXzTarball) := Seq("-pcvf") + universalArchiveOptions in (Universal, packageXzTarball) := Seq("-pcvf"), + universalArchiveOptions in (UniversalDocs, packageXzTarball) := Seq("-pcvf"), + universalArchiveOptions in (UniversalDocs, packageXzTarball) := Seq("-pcvf"), + universalArchiveOptions in (UniversalSrc, packageXzTarball) := Seq("-pcvf"), + universalArchiveOptions in (UniversalSrc, packageXzTarball) := Seq("-pcvf") ) private[this] def printDist(dist: File, streams: TaskStreams): File = { diff --git a/src/sbt-test/universal/test-zips/test b/src/sbt-test/universal/test-zips/test index 72fdb39de..1de8871ad 100644 --- a/src/sbt-test/universal/test-zips/test +++ b/src/sbt-test/universal/test-zips/test @@ -1,6 +1,10 @@ # Run the zip packaging. > show universal:package-bin $ exists target/universal/simple-test-0.1.0.zip +> universal-docs:package-bin +$ exists target/universal-docs/simple-test-0.1.0.zip +> universal-src:package-bin +$ exists target/universal-src/simple-test-0.1.0.zip # Run the tgz packaging. > universal:package-zip-tarball