@@ -41,7 +41,7 @@ that supports Maven to create the Maven project. Add this dependency in the
41
41
<dependency >
42
42
<groupId >com.google.cloud.functions</groupId >
43
43
<artifactId >functions-framework-api</artifactId >
44
- <version >1.0.4 </version >
44
+ <version >1.1.2 </version >
45
45
<scope >provided</scope >
46
46
</dependency >
47
47
```
@@ -51,7 +51,7 @@ Framework dependency in your `build.gradle` project file as follows:
51
51
52
52
``` groovy
53
53
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 '
55
55
}
56
56
57
57
```
@@ -188,15 +188,15 @@ Copy the Functions Framework jar to a local location like this:
188
188
189
189
``` sh
190
190
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 ' \
192
192
-DoutputDirectory=.
193
193
```
194
194
195
195
In this example we use the current directory ` . ` but you can specify any other
196
196
directory to copy to. Then run your function:
197
197
198
198
``` sh
199
- java -jar java-function-invoker-1.1.1 \
199
+ java -jar java-function-invoker-1.3.2 \
200
200
--classpath myfunction.jar \
201
201
--target com.example.HelloWorld
202
202
```
@@ -215,8 +215,8 @@ configurations {
215
215
}
216
216
217
217
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 '
220
220
}
221
221
222
222
tasks.register("runFunction", JavaExec) {
@@ -289,7 +289,7 @@ Framework directly, you must use `--classpath` to indicate how to find the code
289
289
and its dependencies. For example:
290
290
291
291
```
292
- java -jar java-function-invoker-1.1.1 \
292
+ java -jar java-function-invoker-1.3.2 \
293
293
--classpath 'myfunction.jar:/some/directory:/some/library/*' \
294
294
--target com.example.HelloWorld
295
295
```
0 commit comments