Skip to content

Commit

Permalink
Update quickstart-java.md , corrected Kotlin syntax (apache#32676)
Browse files Browse the repository at this point in the history
previous syntax for the snippet was in Groovy, but in step 1&2 of the Gradle conversion we use Kotlin
  • Loading branch information
razvanculea authored Oct 7, 2024
1 parent 3fd397f commit 2cc6efa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/www/site/content/en/get-started/quickstart-java.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ if (project.hasProperty("dataflow-runner")) {
{{< /highlight >}}
4. At the end of the build script, add the following task:
{{< highlight >}}
task execute (type: JavaExec) {
classpath = sourceSets["main"].runtimeClasspath
mainClass.set(System.getProperty("mainClass"))
tasks.register<JavaExec>("execute") {
mainClass.set(System.getProperty("mainClass"))
classpath = sourceSets.main.get().runtimeClasspath
}
{{< /highlight >}}
4. Build your project:
Expand Down

0 comments on commit 2cc6efa

Please sign in to comment.