@@ -32,7 +32,7 @@ that supports Maven to create the Maven project. Add this dependency in the
3232 <dependency >
3333 <groupId >com.google.cloud.functions</groupId >
3434 <artifactId >functions-framework-api</artifactId >
35- <version >1.0.1 </version >
35+ <version >1.0.4 </version >
3636 <scope >provided</scope >
3737 </dependency >
3838```
@@ -42,7 +42,7 @@ Framework dependency in your `build.gradle` project file as follows:
4242
4343``` groovy
4444 dependencies {
45- implementation 'com.google.cloud.functions:functions-framework-api:1.0.1 '
45+ implementation 'com.google.cloud.functions:functions-framework-api:1.0.4 '
4646 }
4747
4848```
@@ -150,7 +150,7 @@ You can configure the plugin in `pom.xml`:
150150<plugin >
151151 <groupId >com.google.cloud.functions</groupId >
152152 <artifactId >function-maven-plugin</artifactId >
153- <version >0.9.2 </version >
153+ <version >0.9.7 </version >
154154 <configuration >
155155 <functionTarget >com.example.function.Echo</functionTarget >
156156 </configuration >
@@ -168,7 +168,7 @@ mvn function:run
168168You can alternatively configure the plugin with properties on the command line:
169169
170170``` sh
171- mvn com.google.cloud.functions:function-maven-plugin:0.9.2 :run \
171+ mvn com.google.cloud.functions:function-maven-plugin:0.9.7 :run \
172172 -Drun.functionTarget=com.example.function.Echo
173173```
174174
@@ -179,15 +179,15 @@ Copy the Functions Framework jar to a local location like this:
179179
180180``` sh
181181mvn dependency:copy \
182- -Dartifact=' com.google.cloud.functions.invoker:java-function-invoker:1.0.0-alpha-2-rc5 ' \
182+ -Dartifact=' com.google.cloud.functions.invoker:java-function-invoker:1.0.2 ' \
183183 -DoutputDirectory=.
184184```
185185
186186In this example we use the current directory ` . ` but you can specify any other
187187directory to copy to. Then run your function:
188188
189189``` sh
190- java -jar java-function-invoker-1.0.0-alpha-2-rc5.jar \
190+ java -jar java-function-invoker-1.0.2 \
191191 --classpath myfunction.jar \
192192 --target com.example.HelloWorld
193193```
@@ -206,8 +206,8 @@ configurations {
206206}
207207
208208dependencies {
209- implementation 'com.google.cloud.functions:functions-framework-api:1.0.1 '
210- invoker 'com.google.cloud.functions.invoker:java-function-invoker:1.0.0-alpha-2-rc5 '
209+ implementation 'com.google.cloud.functions:functions-framework-api:1.0.4 '
210+ invoker 'com.google.cloud.functions.invoker:java-function-invoker:1.0.2 '
211211}
212212
213213tasks.register("runFunction", JavaExec) {
@@ -280,7 +280,7 @@ Framework directly, you must use `--classpath` to indicate how to find the code
280280and its dependencies. For example:
281281
282282```
283- java -jar java-function-invoker-1.0.0-alpha-2-rc5.jar \
283+ java -jar java-function-invoker-1.0.2 \
284284 --classpath 'myfunction.jar:/some/directory:/some/library/*' \
285285 --target com.example.HelloWorld
286286```
0 commit comments