blob: 1428a04d601f1b1eb48c53ab80f0083ab08b91e2 [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: 'pegasus'
apply plugin: 'java'
ext.apiProject = project(':gobblin-rest-service:gobblin-rest-api')
pegasus.main.idlOptions.addIdlItem(['gobblin.rest'])
dependencies {
compile project(path: ":gobblin-rest-service:gobblin-rest-api", configuration: "dataTemplate")
compile project(":gobblin-rest-service:gobblin-rest-client")
compile project(":gobblin-metastore")
compile externalDependency.pegasus.d2
compile externalDependency.pegasus.restliCommon
compile externalDependency.pegasus.restliServer
compile externalDependency.pegasus.restliNettyStandalone
compile externalDependency.guava
compile externalDependency.javaxInject
testCompile project(":gobblin-metastore")
testCompile externalDependency.testng
testRuntime externalDependency.derby
}
// Begin HACK to get around POM being depenendent on the (empty) gobblin-rest-api instead of gobblin-rest-api-data-template
def installer = install.repositories.mavenInstaller
[installer]*.pom*.whenConfigured {pom ->
pom.dependencies.find {dep -> dep.groupId == project.group && dep.artifactId == 'gobblin-rest-api' }.artifactId = 'gobblin-rest-api-data-template'
}
if (rootProject.publishToMaven) {
def deployer = uploadArchives.repositories.mavenDeployer
[deployer]*.pom*.whenConfigured {pom ->
pom.dependencies.find {dep -> dep.groupId == project.group && dep.artifactId == 'gobblin-rest-api' }.artifactId = 'gobblin-rest-api-data-template'
}
}
// End HACK
buildscript {
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
classpath group: 'com.linkedin.pegasus', name: 'gradle-plugins', version: '1.15.9'
}
}
test {
workingDir rootProject.rootDir
}