summaryrefslogtreecommitdiff
path: root/packages/idea/idea.gradle
blob: 645c92ee39930090ff343698e629e6c9f654440d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
final download = makeDownloadTask(
    url: "https://download.jetbrains.com/idea/$filename",
    sha256: sha256sum)

task untar(type: Copy) {
    from tarTree(download.dest)
    into file("${buildDir}/unpacked/dist")
    eachFile { FileCopyDetails fcd ->
        fcd.path = fcd.path.substring(path.indexOf('/')+1)
    }
}
untar.dependsOn(download)

ospackage {
    into "/opt/${project.name}"
    from untar.outputs.files
}

activator.bin['idea'] = "/opt/${project.name}/bin/idea.sh"