Skip to content

Commit 53401c8

Browse files
committed
Update contributor doc reflecting #33954
1 parent 458d7a7 commit 53401c8

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

contributor-docs/code-change-guide.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ Follow these steps for Gradle projects.
395395

396396
```groovy
397397
repositories {
398+
mavenCentral()
399+
mavenLocal()
398400
maven { url "https://repository.apache.org/content/groups/snapshots" }
399401
}
400402
```
@@ -428,18 +430,18 @@ If you're using Dataflow Runner v2 and `sdks/java/harness` or its dependencies (
428430
1. Use the following command to build the SDK harness container:
429431

430432
```shell
431-
./gradlew :sdks:java:container:java11:docker # java8, java11, java17, etc
432-
# change version number to the actual tag below
433-
docker tag apache/beam_java8_sdk:2.64.0.dev \
434-
"us.gcr.io/apache-beam-testing/beam_java11_sdk:2.64.0-custom" # change to your container registry
435-
docker push "us.gcr.io/apache-beam-testing/beam_java11_sdk:2.64.0-custom"
433+
./gradlew :sdks:java:harness:publishToMavenLocal -Ppublishing
436434
```
437435

438-
2. Run the pipeline with the following options:
436+
2. add `org.apache.beam:beam-sdks-java-harness:2.XX.0-SNAPSHOT` as your project dependency. e.g. for Gradle project, add
437+
```
438+
implementation("org.apache.beam:beam-sdks-java-harness:2.XX.0-SNAPSHOT")
439+
```
440+
441+
3. Run the pipeline with the following options:
439442

440443
```
441-
--experiments=use_runner_v2 \
442-
--sdkContainerImage="us.gcr.io/apache-beam-testing/beam_java11_sdk:2.49.0-custom"
444+
--experiments=use_runner_v2,use_staged_dataflow_worker_jar
443445
```
444446

445447
#### Snapshot Version Containers

0 commit comments

Comments
 (0)