Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 17 tasks
KomiB-Atsou opened this issue Aug 24, 2024 · 1 comment

Comments

@KomiB-Atsou
Copy link

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
  • 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
Copy link
Author

KomiB-Atsou commented Aug 24, 2024

This worked for me

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant