summaryrefslogtreecommitdiff
path: root/packages/grails/grails.gradle
blob: f0466050ee0d77c55e8130fba1f8793776ebb9de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
task unzip(type: Copy) {
    from zipTree(downloadTask.dest)
    into file("${buildDir}/unpacked/dist")
    eachFile { FileCopyDetails fcd ->
        fcd.path = fcd.path.substring(path.indexOf('/')+1)
    }
}
unzip.dependsOn(downloadTask)

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