summaryrefslogtreecommitdiff
path: root/packages/grails3/build.gradle
blob: 9616fdbeea2628df6c2ec6f986ec0dfe168af34a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import org.xapek.yvesf.gradle.DownloadTask

version '3.0.10'

task download(type: DownloadTask) {
    source "https://github.com/grails/grails-core/releases/download/v${project.version}/grails-${project.version}.zip"
    sha256sum '5ee27a571bee73072505f2c3af52a8c12f2749113e9791cbc1c695ecb7a8ec2d'
}

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
}