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 26d758f994db..b3ff77174e0b 100644 --- a/website/www/site/content/en/get-started/quickstart-java.md +++ b/website/www/site/content/en/get-started/quickstart-java.md @@ -139,7 +139,7 @@ if (project.hasProperty("dataflow-runner")) { {{< /highlight >}} 4. At the end of the build script, add the following task: {{< highlight >}} -task("execute", JavaExec::class) { +task execute (type: JavaExec) { classpath = sourceSets["main"].runtimeClasspath mainClass.set(System.getProperty("mainClass")) }