blob: 5c5b8bb5a007c49520b93b94e82c05f53214cc8b [file] [log] [blame]
/*
* 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.
*/
plugins {
id 'org.apache.beam.module'
}
applyJavaNature(
automaticModuleName: 'org.apache.beam.sdk.extensions.sql.zetasql',
)
description = "Apache Beam :: SDKs :: Java :: Extensions :: SQL :: ZetaSQL"
ext.summary = "ZetaSQL to Calcite translator"
def zetasql_version = "2020.10.1"
dependencies {
compile enforcedPlatform(library.java.google_cloud_platform_libraries_bom)
permitUnusedDeclared enforcedPlatform(library.java.google_cloud_platform_libraries_bom)
compile project(path: ":sdks:java:core", configuration: "shadow")
compile project(":sdks:java:extensions:sql")
compile project(":sdks:java:extensions:sql:udf")
compile library.java.vendored_calcite_1_20_0
compile library.java.guava
compile library.java.grpc_api
compile library.java.joda_time
compile library.java.protobuf_java
compile library.java.protobuf_java_util
permitUnusedDeclared library.java.protobuf_java_util // BEAM-11761
compile library.java.slf4j_api
compile library.java.vendored_guava_26_0_jre
compile library.java.proto_google_common_protos // Interfaces with ZetaSQL use this
permitUnusedDeclared library.java.proto_google_common_protos // BEAM-11761
compile library.java.grpc_google_common_protos // Interfaces with ZetaSQL use this
permitUnusedDeclared library.java.grpc_google_common_protos // BEAM-11761
compile "com.google.zetasql:zetasql-client:$zetasql_version"
compile "com.google.zetasql:zetasql-types:$zetasql_version"
compile "com.google.zetasql:zetasql-jni-channel:$zetasql_version"
permitUnusedDeclared "com.google.zetasql:zetasql-jni-channel:$zetasql_version" // BEAM-11761
testCompile library.java.vendored_calcite_1_20_0
testCompile library.java.vendored_guava_26_0_jre
testCompile library.java.junit
testCompile library.java.mockito_core
testCompile library.java.quickcheck_core
testCompileOnly project(":sdks:java:extensions:sql:udf-test-provider")
testRuntimeClasspath library.java.slf4j_jdk14
}
test {
dependsOn ":sdks:java:extensions:sql:emptyJar"
// Pass jars used by Java UDF tests via system properties.
systemProperty "beam.sql.udf.test.jar_path", project(":sdks:java:extensions:sql:udf-test-provider").jarPath
systemProperty "beam.sql.udf.test.empty_jar_path", project(":sdks:java:extensions:sql").emptyJar.archivePath
}