Skip to content

Commit

Permalink
docs: update README.md to use newest release (GoogleCloudPlatform#125)
Browse files Browse the repository at this point in the history
anniefu authored Nov 12, 2021
1 parent 1863d13 commit 6312e64
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -158,7 +158,7 @@ You can configure the plugin in `pom.xml`:
<plugin>
<groupId>com.google.cloud.functions</groupId>
<artifactId>function-maven-plugin</artifactId>
<version>0.9.8</version>
<version>0.10.0</version>
<configuration>
<functionTarget>com.example.function.Echo</functionTarget>
</configuration>
@@ -176,7 +176,7 @@ mvn function:run
You can alternatively configure the plugin with properties on the command line:

```sh
mvn com.google.cloud.functions:function-maven-plugin:0.9.7:run \
mvn com.google.cloud.functions:function-maven-plugin:0.10.0:run \
-Drun.functionTarget=com.example.function.Echo
```

@@ -187,15 +187,15 @@ Copy the Functions Framework jar to a local location like this:

```sh
mvn dependency:copy \
-Dartifact='com.google.cloud.functions.invoker:java-function-invoker:1.0.3' \
-Dartifact='com.google.cloud.functions.invoker:java-function-invoker:1.1.0' \
-DoutputDirectory=.
```

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

```sh
java -jar java-function-invoker-1.0.3 \
java -jar java-function-invoker-1.1.0 \
--classpath myfunction.jar \
--target com.example.HelloWorld
```
@@ -215,7 +215,7 @@ configurations {
dependencies {
implementation 'com.google.cloud.functions:functions-framework-api:1.0.4'
invoker 'com.google.cloud.functions.invoker:java-function-invoker:1.0.2'
invoker 'com.google.cloud.functions.invoker:java-function-invoker:1.1.0'
}
tasks.register("runFunction", JavaExec) {
@@ -288,7 +288,7 @@ Framework directly, you must use `--classpath` to indicate how to find the code
and its dependencies. For example:

```
java -jar java-function-invoker-1.0.3 \
java -jar java-function-invoker-1.1.0 \
--classpath 'myfunction.jar:/some/directory:/some/library/*' \
--target com.example.HelloWorld
```

0 comments on commit 6312e64

Please sign in to comment.