github.com/apache/beam/sdks/v2@v2.48.2/java/extensions/sql/hcatalog/build.gradle (about) 1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * License); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an AS IS BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 plugins { id 'org.apache.beam.module' } 20 21 applyJavaNature( 22 automaticModuleName: 'org.apache.beam.sdk.extensions.sql.meta.provider.hcatalog', 23 classesTriggerCheckerBugs: [ 24 'HCatalogTable': 'TODO: file a bug report', 25 ], 26 ) 27 28 def hive_version = "3.1.3" 29 def netty_version = "4.1.51.Final" 30 31 /* 32 * We need to rely on manually specifying these evaluationDependsOn to ensure that 33 * the following projects are evaluated before we evaluate this project. This is because 34 * we are attempting to reference the "sourceSets.test.output" directly. 35 * TODO: use testTextures feature which is introduced in Gradle 5.6 instead of 36 * the test outputs directly. 37 */ 38 evaluationDependsOn(":sdks:java:io:hcatalog") 39 40 dependencies { 41 implementation project(":sdks:java:extensions:sql") 42 implementation project(":sdks:java:io:hcatalog") 43 implementation project(":sdks:java:core") 44 implementation "com.alibaba:fastjson:1.2.69" 45 implementation library.java.vendored_guava_26_0_jre 46 47 testImplementation project(":sdks:java:io:hcatalog").sourceSets.test.output 48 // Needed for HCatalogTableProvider tests, 49 // they use HCat* types 50 testImplementation "io.netty:netty-all:$netty_version" 51 testImplementation("org.apache.hive.hcatalog:hive-hcatalog-core:$hive_version") { 52 // Hive brings full Calcite 1.6 + Avatica with JDBC driver which 53 // gets registered and gets started instead of ours 54 exclude group: "org.apache.calcite", module:"calcite-avatica" 55 } 56 }