build.gradle

39 lines | 881 B Blame History Raw Download
apply plugin: 'distribution'

dependencies {
  compile(project(':azkaban-common'))
  compile('org.apache.kafka:kafka-log4j-appender:0.10.0.0')
  compile('com.googlecode.json-simple:json-simple:1.1.1') {
    exclude group: 'junit', module: 'junit'
  }

  runtime(project(':azkaban-hadoop-security-plugin'))
  runtime('org.slf4j:slf4j-log4j12:1.7.18')

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

  testRuntime "com.h2database:h2:1.4.193"
}

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