We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fd397f commit 2cc6efaCopy full SHA for 2cc6efa
website/www/site/content/en/get-started/quickstart-java.md
@@ -139,9 +139,9 @@ if (project.hasProperty("dataflow-runner")) {
139
{{< /highlight >}}
140
4. At the end of the build script, add the following task:
141
{{< highlight >}}
142
-task execute (type: JavaExec) {
143
- classpath = sourceSets["main"].runtimeClasspath
144
- mainClass.set(System.getProperty("mainClass"))
+tasks.register<JavaExec>("execute") {
+ mainClass.set(System.getProperty("mainClass"))
+ classpath = sourceSets.main.get().runtimeClasspath
145
}
146
147
4. Build your project:
0 commit comments