Reputation: 5030
I'm trying to use Java11 runtime for Google cloud/firebase functions, which was quite recently released. I want to test firestore trigger functions on my local machine. Guides on the internet seem to be using the command firebase functions:shell which by itself starts the required emulation processes. However, I don't find any method to specify the .jar file for the firebase functions:shell command. Or any way to specify the functions. I know it doesn't load my Java http function because it shows the loaded functions and helloWorld isn't one of them:
gintas-mac:functions gintas$ firebase functions:shell
⚠ Your requested "node" version "10" doesn't match your global version "8"
i functions: Loaded functions: helloWorld
⚠ functions: The following emulators are not running, calls to these services will affect production: firestore, database, pubsub
Upvotes: 0
Views: 644
Reputation: 317322
It's not possible to use the Firebase CLI to test a function written in Java. Firebase only supports functions written with the firebase-functions module on nodejs.
Upvotes: 1