Skip to content

Commit 9ec73ba

Browse files
authored
Fix Java Beam SDK example to target Java 11 (apache#71218)
* Fix maven settings file to target Java 11 * Update README
1 parent 7e00142 commit 9ec73ba

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

  • providers/google/tests/system/google/cloud/dataflow/resources/non_python_src/java_streaming_src

providers/google/tests/system/google/cloud/dataflow/resources/non_python_src/java_streaming_src/README.MD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Dataflow Java Streaming
22

3-
This project is a streaming example running with latest Apache Beam Java SDK (v.2.63),
3+
This project is a streaming example running with latest Apache Beam Java SDK (v.2.75),
44
as there is no "official" streaming example yet https://beam.apache.org/get-started/wordcount-example/.
55

66
Sample logic to direct streaming data from input Pub/Sub source to the output PubSub topic to work
@@ -11,7 +11,7 @@ That used for Java dataflow streaming system tests.
1111

1212
## Requirements
1313

14-
- **Java 17**: Ensure you have Java 17 installed and configured on your system.
14+
- **Java 11 or higher**: Ensure you have Java installed and configured on your system
1515
- **Maven**: Make sure Maven is installed and configured on your system.
1616
- Maven is used for dependency management and building the project.
1717

providers/google/tests/system/google/cloud/dataflow/resources/non_python_src/java_streaming_src/pom.xml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,15 @@
2626
<version>v-0.1</version>
2727
<properties>
2828
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
29-
<beam.version>2.63.0</beam.version>
30-
<slf4j.version>2.0.16</slf4j.version>
31-
<google.cloud.version>1.113.0</google.cloud.version>
29+
<beam.version>2.75.0</beam.version>
30+
<slf4j.version>2.0.18</slf4j.version>
31+
<google.cloud.version>1.152.0</google.cloud.version>
3232
<secretmanager.version>2.45.0</secretmanager.version>
3333
<iamcredentials.version>2.45.0</iamcredentials.version>
34-
<maven.compiler.source>17</maven.compiler.source>
35-
<maven.compiler.target>17</maven.compiler.target>
34+
<maven.compiler.release>11</maven.compiler.release>
3635

37-
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
38-
<maven-shade-plugin.version>3.2.4</maven-shade-plugin.version>
36+
<maven-compiler-plugin.version>3.15.0</maven-compiler-plugin.version>
37+
<maven-shade-plugin.version>3.6.2</maven-shade-plugin.version>
3938
</properties>
4039
<dependencies>
4140
<!-- Beam Dependencies-->

0 commit comments

Comments
 (0)