Skip to content

Commit ec709f6

Browse files
authored
fix: update readme with newer versions (and release 1.1.2) (GoogleCloudPlatform#289)
1 parent f82b701 commit ec709f6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ that supports Maven to create the Maven project. Add this dependency in the
4141
<dependency>
4242
<groupId>com.google.cloud.functions</groupId>
4343
<artifactId>functions-framework-api</artifactId>
44-
<version>1.0.4</version>
44+
<version>1.1.2</version>
4545
<scope>provided</scope>
4646
</dependency>
4747
```
@@ -51,7 +51,7 @@ Framework dependency in your `build.gradle` project file as follows:
5151

5252
```groovy
5353
dependencies {
54-
implementation 'com.google.cloud.functions:functions-framework-api:1.0.4'
54+
implementation 'com.google.cloud.functions:functions-framework-api:1.1.2'
5555
}
5656
5757
```
@@ -188,15 +188,15 @@ Copy the Functions Framework jar to a local location like this:
188188

189189
```sh
190190
mvn dependency:copy \
191-
-Dartifact='com.google.cloud.functions.invoker:java-function-invoker:1.1.1' \
191+
-Dartifact='com.google.cloud.functions.invoker:java-function-invoker:1.3.2' \
192192
-DoutputDirectory=.
193193
```
194194

195195
In this example we use the current directory `.` but you can specify any other
196196
directory to copy to. Then run your function:
197197

198198
```sh
199-
java -jar java-function-invoker-1.1.1 \
199+
java -jar java-function-invoker-1.3.2 \
200200
--classpath myfunction.jar \
201201
--target com.example.HelloWorld
202202
```
@@ -215,8 +215,8 @@ configurations {
215215
}
216216
217217
dependencies {
218-
implementation 'com.google.cloud.functions:functions-framework-api:1.0.4'
219-
invoker 'com.google.cloud.functions.invoker:java-function-invoker:1.1.1'
218+
implementation 'com.google.cloud.functions:functions-framework-api:1.1.2'
219+
invoker 'com.google.cloud.functions.invoker:java-function-invoker:1.3.2'
220220
}
221221
222222
tasks.register("runFunction", JavaExec) {
@@ -289,7 +289,7 @@ Framework directly, you must use `--classpath` to indicate how to find the code
289289
and its dependencies. For example:
290290

291291
```
292-
java -jar java-function-invoker-1.1.1 \
292+
java -jar java-function-invoker-1.3.2 \
293293
--classpath 'myfunction.jar:/some/directory:/some/library/*' \
294294
--target com.example.HelloWorld
295295
```

0 commit comments

Comments
 (0)