./mvnw function:runAnd visit http://localhost:8080/clickupBigqueryExport
First build the function with:
$ ./mvnw clean packageThen cd into the target directory (deployment has to be done from the location where the JAR lives):
$ cd targetNow run:
$ gcloud functions deploy clickup-bigquery-export --entry-point io.micronaut.gcp.function.http.HttpFunction --runtime java11 --trigger-httpChoose unauthenticated access if you don't need auth.
To obtain the trigger URL do the following:
$ YOUR_HTTP_TRIGGER_URL=$(gcloud functions describe clickup-bigquery-export --format='value(httpsTrigger.url)')You can then use this variable to test the function invocation:
$ curl -i $YOUR_HTTP_TRIGGER_URL/clickupBigqueryExport