@@ -215,8 +215,8 @@ tasks.register("runFunction", JavaExec) {
215215 classpath(configurations.invoker)
216216 inputs.files(configurations.runtimeClasspath, sourceSets.main.output)
217217 args(
218- '--target', project.findProperty('runFunction.target '),
219- '--port', project.findProperty('runFunction .port') ?: 8080
218+ '--target', project.findProperty('run.functionTarget '),
219+ '--port', project.findProperty('run .port') ?: 8080
220220 )
221221 doFirst {
222222 args('--classpath', files(configurations.runtimeClasspath, sourceSets.main.output).asPath)
@@ -227,15 +227,15 @@ tasks.register("runFunction", JavaExec) {
227227Then in your terminal or IDE, you will be able to run the function locally with:
228228
229229``` sh
230- gradle runFunction -PrunFunction.target =com.example.HelloWorld \
231- -PrunFunction .port=8080
230+ gradle runFunction -Prun.functionTarget =com.example.HelloWorld \
231+ -Prun .port=8080
232232```
233233
234234Or if you use the Gradle wrapper provided by your Gradle project build:
235235
236236``` sh
237- ./gradlew runFunction -PrunFunction.target =com.example.HelloWorld \
238- -PrunFunction .port=8080
237+ ./gradlew runFunction -Prun.functionTarget =com.example.HelloWorld \
238+ -Prun .port=8080
239239```
240240
241241## Functions Framework configuration
0 commit comments