beam icon indicating copy to clipboard operation
beam copied to clipboard

[Bug]: Issue with the script for adding execute task in "Convert from Maven to Gradle" section

Open KomiB-Atsou opened this issue 1 year ago • 1 comments

What happened?

Go to https://beam.apache.org/get-started/quickstart-java/#optional-convert-from-maven-to-gradle At step 4. when you add the script to the build script (supposed to be in Kotlin DSL)

You will get a gradle error saying that it expects ')' :

Issue Priority

Priority: 2 (default / most bugs should be filed as P2)

Issue Components

  • [ ] Component: Python SDK
  • [ ] Component: Java SDK
  • [ ] Component: Go SDK
  • [ ] Component: Typescript SDK
  • [ ] Component: IO connector
  • [ ] Component: Beam YAML
  • [ ] Component: Beam examples
  • [ ] Component: Beam playground
  • [ ] Component: Beam katas
  • [X] Component: Website
  • [ ] Component: Infrastructure
  • [ ] Component: Spark Runner
  • [ ] Component: Flink Runner
  • [ ] Component: Samza Runner
  • [ ] Component: Twister2 Runner
  • [ ] Component: Hazelcast Jet Runner
  • [ ] Component: Google Cloud Dataflow Runner

KomiB-Atsou avatar Aug 24 '24 01:08 KomiB-Atsou

This worked for me

tasks.register<JavaExec>("execute") { group = "application" description = "Run the Java application." mainClass.set("org.apache.beam.examples.WordCount") classpath = sourceSets["main"].runtimeClasspath }

tasks.getByName("execute").dependsOn("classes")

KomiB-Atsou avatar Aug 24 '24 01:08 KomiB-Atsou

This issue has been marked as stale due to 150 days of inactivity. It will be closed in 30 days if no further activity occurs. If you think that’s incorrect or this issue still needs to be addressed, please simply write any comment. If closed, you can reopen the issue at any time. Thank you for your contributions.

github-actions[bot] avatar Aug 15 '25 12:08 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, you can reopen the issue at any time.

github-actions[bot] avatar Sep 15 '25 12:09 github-actions[bot]