Skip to content

Commit 2cc6efa

Browse files
authored
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
1 parent 3fd397f commit 2cc6efa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/www/site/content/en/get-started/quickstart-java.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ if (project.hasProperty("dataflow-runner")) {
139139
{{< /highlight >}}
140140
4. At the end of the build script, add the following task:
141141
{{< highlight >}}
142-
task execute (type: JavaExec) {
143-
classpath = sourceSets["main"].runtimeClasspath
144-
mainClass.set(System.getProperty("mainClass"))
142+
tasks.register<JavaExec>("execute") {
143+
mainClass.set(System.getProperty("mainClass"))
144+
classpath = sourceSets.main.get().runtimeClasspath
145145
}
146146
{{< /highlight >}}
147147
4. Build your project:

0 commit comments

Comments
 (0)