Skip to content

Commit f70a307

Browse files
author
Tobi
authored
Fix-Gradle-Example-Parameters (GoogleCloudPlatform#93)
1 parent e7dea60 commit f70a307

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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) {
227227
Then 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

234234
Or 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

Comments
 (0)