Hi. I am working on migrating an Ant-based project to Gradle, and one sticking point is that the distTar
task with compression = Compression.BZIP2
set is 5x slower than the equivalent Ant task.
Is this a known issue? Is there a good fix or workaround?
Edit: For a workaround, having Gradle make an uncompressed .tar and then bzipping with Ant speeds things up immensely:
distTar.compression = Compression.NONE
distTar.doLast {
ant.bzip2(src: distTar.archivePath, destfile: "${distTar.archivePath}.bz2")
delete distTar.archivePath // optional
}