in project/Distributions.scala [70:79]
def tarGz(sources: Traversable[(File, String)], output: File): Unit = {
val out = new TarArchiveOutputStream(new GZIPOutputStream(new FileOutputStream(output)))
for ((f, name) <- sources) {
out.putArchiveEntry(out.createArchiveEntry(f, name))
IO.transfer(f, out)
out.closeArchiveEntry()
}
out.finish()
out.close()
}