Hi all,
Is there a way to get a specific file from a repository? I would like to
'download' a zip file and change its contents. Right now I define a
dependency and use a configuration to actually find the file.
configurations {
zipFile
}
dependencies {
zipFile 'com.somewhere:zipfile:1.0@zip'
}
task blah(type: Zip) << {
configurations.zipFile.find {
// add to and remove stuff from zip file
}
}
It works but it feels a bit crooked because this solution depends on the zip
file being the only file in the zipFile configuration and creating a
configuration to get just a single file seems a bit heavy. Is there a better
way to download the zip from a repository?
cheers,
--L