This is an automated email from the ASF dual-hosted git repository.
ibzib pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 827c938 [BEAM-10961] make mongo-java-driver dependency a named
variable
new 705649d Merge pull request #13910 from
sonam-vend/sdks-io-mongodb-driver-version
827c938 is described below
commit 827c9387d7b7efa55717d6dccde672787c72b3de
Author: Shehzaad Nakhoda <[email protected]>
AuthorDate: Sat Feb 6 03:34:52 2021 -0800
[BEAM-10961] make mongo-java-driver dependency a named variable
---
.../src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy | 1 +
sdks/java/io/mongodb/build.gradle | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git
a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
index 31dbd7c..504a2e8 100644
--- a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
+++ b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
@@ -590,6 +590,7 @@ class BeamModulePlugin implements Plugin<Project> {
kafka :
"org.apache.kafka:kafka_2.11:$kafka_version",
kafka_clients :
"org.apache.kafka:kafka-clients:$kafka_version",
mockito_core :
"org.mockito:mockito-core:3.7.7",
+ mongo_java_driver :
"org.mongodb:mongo-java-driver:3.12.7",
nemo_compiler_frontend_beam :
"org.apache.nemo:nemo-compiler-frontend-beam:$nemo_version",
netty_all :
"io.netty:netty-all:$netty_version",
netty_handler :
"io.netty:netty-handler:$netty_version",
diff --git a/sdks/java/io/mongodb/build.gradle
b/sdks/java/io/mongodb/build.gradle
index 30ede18..9250d5b 100644
--- a/sdks/java/io/mongodb/build.gradle
+++ b/sdks/java/io/mongodb/build.gradle
@@ -25,11 +25,11 @@ description = "Apache Beam :: SDKs :: Java :: IO :: MongoDB"
ext.summary = "IO to read and write on MongoDB."
dependencies {
- compile library.java.vendored_guava_26_0_jre
compile project(path: ":sdks:java:core", configuration: "shadow")
- compile library.java.slf4j_api
compile library.java.joda_time
- compile "org.mongodb:mongo-java-driver:3.12.7"
+ compile library.java.mongo_java_driver
+ compile library.java.slf4j_api
+ compile library.java.vendored_guava_26_0_jre
testCompile library.java.junit
testCompile project(path: ":sdks:java:io:common", configuration:
"testRuntime")
testCompile project(path: ":sdks:java:testing:test-utils", configuration:
"testRuntime")