apply plugin: 'java'

task zip(type: Zip) {
    from 'src/dist'
    into('libs') {
        from configurations.runtime
    }
}

apply plugin: 'java'

task tar(type: Tar) {
    from 'src/dist'
    into('libs') {
        from configurations.runtime
    }
}
