kotlin-google-cloud-function
Full blog post here: mwhyte.dev/Creating-Google-Cloud-Functions-With-Kotlin
Running the function locally.
./gradlew runFunction -PrunFunction.target=dev.mwhyte.function.App -PrunFunction.port=8080
Deploying to GCloud (basic)
gcloud config set functions/region europe-west1
gcloud functions deploy my-test-function \
--entry-point=dev.mwhyte.function.App \
--source=build/deploy --runtime=java11 --trigger-http \
--allow-unauthenticated
gcloud functions describe my-test-function
curl https://<your-region>-<you-project-name>.cloudfunctions.net/my-test-function
gcloud functions delete my-test-function