| // Licensed to the Apache Software Foundation (ASF) under one |
| // or more contributor license agreements. See the NOTICE file |
| // distributed with this work for additional information |
| // regarding copyright ownership. The ASF licenses this file |
| // to you 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. See the License for the |
| // specific language governing permissions and limitations |
| // under the License. |
| |
| apply from: "$rootDir/gradle/protobuf.gradle" |
| apply from: "$rootDir/gradle/shadow.gradle" |
| |
| // Explicitly allow slf4j to be included in this jar. |
| shadowIncludeSlf4j = true |
| |
| dependencies { |
| compile(libs.hadoopCommon) { |
| // hadoopCommon and rangerPlugin use different versions of jersey. |
| exclude group: "com.sun.jersey" |
| // Exclude log4j and slf4j to ensure we use our own versions. |
| exclude group: "log4j" |
| exclude group: "org.slf4j" |
| } |
| compile libs.protobufJava |
| compile libs.protobufJavaUtil |
| |
| compile(libs.rangerPlugin) { |
| // rangerPlugin depends on kafka which includes different versions |
| // of jersey than rangerPlugin. |
| exclude group: "org.apache.kafka" |
| // Exclude log4j and slf4j to ensure we use our own versions. |
| exclude group: "log4j" |
| exclude group: "org.slf4j" |
| } |
| compile libs.slf4jApi |
| compile libs.log4jApi |
| compile libs.log4jCore |
| compile libs.log4jCompat |
| compile libs.log4jSlf4jImpl |
| |
| optional libs.jsr305 |
| optional libs.yetusAnnotations |
| |
| testCompile project(path: ":kudu-test-utils", configuration: "shadow") |
| testCompile libs.junit |
| testCompile libs.mockitoCore |
| } |
| |
| // Add protobuf files to the proto source set. |
| sourceSets { |
| main { |
| proto { |
| srcDir "${project.rootDir}/../src" |
| // Excluded any test proto files |
| exclude "**/*test*.proto" |
| } |
| } |
| } |
| |
| // kudu-subprocess has no public Javadoc. |
| javadoc { |
| enabled = false |
| } |
| |
| // Skip publishing kudu-subprocess artifact because it's not intended for external use. |
| uploadArchives.enabled = false |
| install.enabled = false |