blob: 4e460350b728bfd977dc4aa1c6d6197dd73e9f53 [file] [log] [blame]
// Copyright (C) 2014-2016 LinkedIn Corp. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed
// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, either express or implied.
apply plugin: 'java'
dependencies {
compile project(":gobblin-api")
compile externalDependency.commonsCli
compile externalDependency.commonsConfiguration
compile externalDependency.commonsCompress
compile externalDependency.commonsDbcp
compile externalDependency.commonsEmail
compile externalDependency.commonsIo
compile externalDependency.commonsLang
compile externalDependency.guava
compile externalDependency.slf4j
compile externalDependency.avro
compile externalDependency.jodaTime
compile externalDependency.jacksonCore
compile externalDependency.jasypt
compile externalDependency.lombok
compile externalDependency.metricsCore
compile externalDependency.guice
compile externalDependency.bcpgJdk15on
compile externalDependency.bcprovJdk15on
compile externalDependency.typesafeConfig
compile externalDependency.commonsPool
if (project.hasProperty('useHadoop2')) {
compile externalDependency.avroMapredH2
runtime externalDependency.hadoopCommon
runtime externalDependency.hadoopClientCore
runtime externalDependency.hadoopHdfs
runtime externalDependency.hadoopAuth
} else {
compile externalDependency.avroMapredH1
runtime externalDependency.hadoop
}
testCompile externalDependency.hamcrest
testCompile externalDependency.testng
testCompile externalDependency.mockito
}
configurations {
compile {
transitive = true
}
archives
}
test {
workingDir rootProject.rootDir
}
ext.classification="library"
task utilityTar(type: Tar) {
//there seems to be a bug in the Gradle signing module where X.tar.gz will generate
// a signature X.gz.asc instead of X.tar.gz.asc. Therefore, we have to use the .tgz
// extension
extension = 'tgz'
baseName = project.name
compression = Compression.GZIP
into("lib") { from configurations.runtime }
into("lib") { from "${project.rootDir}/build/${project.name}/libs/${project.name}.jar"}
into("lib") { from "${project.rootDir}/build/${project.name}/libs/${project.name}-${project.version}.jar"}
into("bin") {
from "src/main/bash"
fileMode = 0755
}
into(".") { from project.rootDir.path + "/conf/log4j.xml" }
}
utilityTar.dependsOn ':gobblin-utility:jar'
artifacts {
archives utilityTar
}