Skip to content

HOWTO zip project to a file for deployment #30

Description

@ngocdaothanh

Modify build.sbt to add command sbt/sbt zip:

val zip = taskKey[Unit]("zip")

// Run xitrum-package before zipping
zip <<= (XitrumPackage.xitrumPackageKey, name, version) map { (_, n, v) =>
  // Zip directory target/xitrum to <project name>-<version>.zip
  val zipFile = n + "-" + v + ".zip"
  println(zipFile)
}

See also: http://jsuereth.com/scala/2013/06/11/effective-sbt.html

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions