Clojure on JVM on Google Cloud Functions.
This project implements a class loader fix to be able to run Clojure on GCP Cloud Functions.
org.clojars.markus-wa/gcf-clj {:mvn/version "0.0.1"}
[org.clojars.markus-wa/gcf-clj "0.0.1"]
$ gcloud functions deploy my-function \
--gen2 \
--runtime java17 \
--entry-point com.saiko_tech.gcf_clj.ClojureCloudFunction \
--trigger-topic my-topic \
--region europe-north1 \
--memory 2Gi \
--set-env-vars --set-env-vars "GCF_CLOJURE_NS=com.myns" \
--set-env-vars "GCF_CLOJURE_FN=my-fn" \
--source dir-containing-uberjar
Thanks to https://sparkofreason.github.io/jvm-clojure-google-cloud-function/ for providing the solution approach