Is there something akin to `ArchiveOperations.zipT...
# community-support
k
Is there something akin to
ArchiveOperations.zipTree
but for creating zip files? I know there is the
Zip
task but that can't be used inside an artifact transform.
v
Afair no, you have to use normal means like a
ZipOutputStream
e
there's an Ant Zip task which may be easier. but using that is not typed. I would use java.util.zip.ZipOutputStream (as mentioned) or org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream (better support for Zip64)
v
The Ant ZIP task might be an option, but not really convenient, as it is inside an artifact transform and the ant builder is still not injectable anywhere.
k
Yeah the point of the question is if there's something as convenient as the Zip task. Maybe we'll get an API like that some day