Full blog post here: mwhyte.dev/Creating-Google-Cloud-Functions-With-Kotlin
./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