I am trying to extract a tar.bz2 archive that is added to a repository from
an upstream build. I came across this thread:
http://gradle.1045684.n5.nabble.com/built-in-unzip-support-for-zip-and-tar-gz-td1431871.html
This is what I have:
configurations {
upstreamArchive
}
depedencies {
upstreamArchive "my.group:artifactId:[email protected]"
}
task extractFiles << {
theArchives = configurations.upstreamArchive.resolve()
theArchives.each {
copy {
from tarTree(it)
into buildDir
}
}
It runs without error, but no files are extracted into buildDir