[Bug]: Issue with the script for adding execute task in "Convert from Maven to Gradle" section
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
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")
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.
This issue has been closed due to lack of activity. If you think that is incorrect, you can reopen the issue at any time.