apply plugin: 'distribution'

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

    compile deps.jsr305
    compile deps.kafkaLog4jAppender
    runtime(project(':azkaban-hadoop-security-plugin'))

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

    testCompile deps.h2
    testCompile deps.hadoopAnnotations
    testCompile deps.hadoopAuth
    testCompile deps.hadoopCommon
    testCompile deps.hadoopHdfs
}

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'
            }
        }
    }
}
