import org.xapek.yvesf.gradle.DownloadTask version '14.1.5' task download(type: DownloadTask) { source "https://download.jetbrains.com/idea/ideaIU-${project.version}.tar.gz" sha256sum 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' } task untar(type: Copy) { from tarTree(download.destFile) into file("${buildDir}/unpacked/dist") } untar.dependsOn(download) ospackage { into "/opt/${project.name}" from untar.outputs.files }