Full blog post here: https://mwhyte.dev/creating-google-cloud-functions-with-kotlin-c9fd552d6b20
./gradlew runFunction
./gradlew runFunction -PrunFunction.target=dev.mwhyte.function.App -PrunFunction.port=8080
gcloud config set functions/region europe-west1
./gradlew buildFunction
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