From 69106fe309040bc24f2af4c70dfddb602963f365 Mon Sep 17 00:00:00 2001 From: dpcollins-google <40498610+dpcollins-google@users.noreply.github.com> Date: Wed, 28 Jul 2021 10:35:34 -0400 Subject: [PATCH] deps: define Beam version as a Maven property in pom (#714) * deps: bump maven version and remove explicit version override for fmt and dependency plugins which are present in the base configuration * fix: dep scoping * Set version on old snippets to 2.29.0 2.30.0 won't work with the I/O not built with that version. Lower versions will work. Co-authored-by: Tianzi Cai --- pubsublite-beam-io/pom.xml | 9 ++++++--- samples/snapshot/pom.xml | 5 +++-- samples/snippets/pom.xml | 15 ++++++++------- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/pubsublite-beam-io/pom.xml b/pubsublite-beam-io/pom.xml index 73075c76e..635f58169 100644 --- a/pubsublite-beam-io/pom.xml +++ b/pubsublite-beam-io/pom.xml @@ -16,6 +16,9 @@ Pub/Sub Lite IO https://github.com/googleapis/java-pubsublite Beam IO for Google Cloud Pub/Sub Lite + + 2.30.0 + com.google.cloud @@ -85,12 +88,12 @@ org.apache.beam beam-sdks-java-core - 2.29.0 + ${beam.version} org.apache.beam beam-sdks-java-extensions-protobuf - 2.29.0 + ${beam.version} com.google.flogger @@ -124,7 +127,7 @@ org.apache.beam beam-runners-direct-java - 2.29.0 + ${beam.version} test diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c75616037..8929fdee2 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -38,6 +38,7 @@ 1.8 1.8 UTF-8 + 2.30.0 @@ -63,7 +64,7 @@ org.apache.beam beam-model-pipeline - 2.29.0 + ${beam.version} @@ -81,7 +82,7 @@ org.apache.beam beam-runners-direct-java - 2.29.0 + ${beam.version} test diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index daf04541b..dc9fc7650 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -38,6 +38,7 @@ 1.8 1.8 UTF-8 + 2.29.0 @@ -55,17 +56,17 @@ - + + + org.apache.beam + beam-model-pipeline + ${beam.version} + com.google.cloud pubsublite-beam-io 0.16.1 - - org.apache.beam - beam-model-pipeline - 2.29.0 - junit @@ -82,7 +83,7 @@ org.apache.beam beam-runners-direct-java - 2.29.0 + ${beam.version} test