The elegant way would be an atrifact transform that unpacks that zips, that way you then again get it unpacked from the configuration already and it would also work if you declare multiple such dependencies on one configuration: Transforming dependency artifacts on resolution