github.com/apache/beam/sdks/v2@v2.48.2/java/extensions/sql/zetasql/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 { 20 id 'org.apache.beam.module' 21 } 22 23 applyJavaNature( 24 automaticModuleName: 'org.apache.beam.sdk.extensions.sql.zetasql', 25 ) 26 27 description = "Apache Beam :: SDKs :: Java :: Extensions :: SQL :: ZetaSQL" 28 ext.summary = "ZetaSQL to Calcite translator" 29 30 def zetasql_version = "2022.04.1" 31 32 dependencies { 33 // TODO(https://github.com/apache/beam/issues/21156): Determine how to build without this dependency 34 provided "org.immutables:value:2.8.8" 35 permitUnusedDeclared "org.immutables:value:2.8.8" 36 implementation enforcedPlatform(library.java.google_cloud_platform_libraries_bom) 37 permitUnusedDeclared enforcedPlatform(library.java.google_cloud_platform_libraries_bom) 38 implementation project(path: ":sdks:java:core", configuration: "shadow") 39 implementation project(":sdks:java:extensions:sql") 40 implementation project(":sdks:java:extensions:sql:udf") 41 implementation library.java.vendored_calcite_1_28_0 42 implementation library.java.guava 43 implementation library.java.grpc_api 44 implementation library.java.joda_time 45 implementation library.java.protobuf_java 46 implementation library.java.protobuf_java_util 47 permitUnusedDeclared library.java.protobuf_java_util // BEAM-11761 48 implementation library.java.slf4j_api 49 implementation library.java.vendored_guava_26_0_jre 50 implementation library.java.proto_google_common_protos // Interfaces with ZetaSQL use this 51 permitUnusedDeclared library.java.proto_google_common_protos // BEAM-11761 52 implementation library.java.grpc_google_common_protos // Interfaces with ZetaSQL use this 53 permitUnusedDeclared library.java.grpc_google_common_protos // BEAM-11761 54 implementation "com.google.zetasql:zetasql-client:$zetasql_version" 55 implementation "com.google.zetasql:zetasql-types:$zetasql_version" 56 implementation "com.google.zetasql:zetasql-jni-channel:$zetasql_version" 57 permitUnusedDeclared "com.google.zetasql:zetasql-jni-channel:$zetasql_version" // BEAM-11761 58 testImplementation library.java.vendored_calcite_1_28_0 59 testImplementation library.java.vendored_guava_26_0_jre 60 testImplementation library.java.junit 61 testImplementation library.java.hamcrest 62 testImplementation library.java.mockito_core 63 testImplementation library.java.quickcheck_core 64 testImplementation "com.alibaba:fastjson:1.2.69" 65 testImplementation "org.codehaus.janino:janino:3.0.11" 66 testCompileOnly project(":sdks:java:extensions:sql:udf-test-provider") 67 testRuntimeOnly library.java.slf4j_jdk14 68 } 69 70 test { 71 dependsOn ":sdks:java:extensions:sql:emptyJar" 72 // Pass jars used by Java UDF tests via system properties. 73 systemProperty "beam.sql.udf.test.jar_path", project(":sdks:java:extensions:sql:udf-test-provider").jarPath 74 systemProperty "beam.sql.udf.test.empty_jar_path", project(":sdks:java:extensions:sql").emptyJar.archivePath 75 }