import org.xapek.yvesf.gradle.DownloadTask version '7-update1' task download(type: DownloadTask) { source "http://www.xmind.net/xmind/downloads/xmind-${project.version}-portable.zip" sha256sum '2823c93178e55ff21d3a75ff2a9d2aa694f50a94a7220207a1ad757660cdf030' } task unpack(type: Copy) { from zipTree(download.destFile) into file("${buildDir}/unpacked/dist") eachFile { FileCopyDetails fcd -> fcd.path = fcd.path.substring(path.indexOf('/')+1) } } unpack.dependsOn(download) ospackage { into "/opt/${project.name}" from unpack.outputs.files }