Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX #731 add options for zip and tarballs #732

Merged
merged 1 commit into from
Jan 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
4 changes: 4 additions & 0 deletions src/sbt-test/universal/test-zips/test
Original file line number Diff line number Diff line change
@@ -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
Expand Down