From 2cc6efa9d30e3daebdd0b3043945818c31584892 Mon Sep 17 00:00:00 2001 From: razvanculea <40352446+razvanculea@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:25:24 +0200 Subject: [PATCH] Update quickstart-java.md , corrected Kotlin syntax (#32676) previous syntax for the snippet was in Groovy, but in step 1&2 of the Gradle conversion we use Kotlin --- website/www/site/content/en/get-started/quickstart-java.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/www/site/content/en/get-started/quickstart-java.md b/website/www/site/content/en/get-started/quickstart-java.md index b3ff77174e0b..46c687b54236 100644 --- a/website/www/site/content/en/get-started/quickstart-java.md +++ b/website/www/site/content/en/get-started/quickstart-java.md @@ -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("execute") { + mainClass.set(System.getProperty("mainClass")) + classpath = sourceSets.main.get().runtimeClasspath } {{< /highlight >}} 4. Build your project: