apply plugin: 'distribution'

dependencies {
    compile(project(':azkaban-common'))

    compile deps.kafkaLog4jAppender
    compile(deps.jsonSimple) {
        exclude group: 'junit', module: 'junit'
    }

    runtime(project(':azkaban-hadoop-security-plugin'))

    testCompile(project(path: ':azkaban-common', configuration: 'testCompile'))
    testCompile(project(':azkaban-common').sourceSets.test.output)

    testRuntime deps.h2
}

distributions {
    main {
        contents {
            from('src/main/bash') {
                into 'bin'
                fileMode = 0755
            }
            from('../azkaban-common/src/main/bash') {
                into 'bin'
                fileMode = 0755
            }
            from(configurations.runtime) {
                into 'lib'
            }
            from(jar) {
                into 'lib'
            }
        }
    }
}
