You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Building and deploying the Main branch version of spring-cloud-function-samples/function-sample-gcp-http fails with 'java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher'
The 4.0.x branch still packages and deploys as expected.
Need to reopen "#1085"
Describe the bug
Building and deploying the Main branch version of spring-cloud-function-samples/function-sample-gcp-http fails with 'java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher'
The 4.0.x branch still packages and deploys as expected.
Steps
Clone project && cd project
./mvnw install
cd spring-cloud-function-samples/function-sample-gcp-http
mvn package
gcloud functions deploy function-sample-gcp-http
--entry-point org.springframework.cloud.function.adapter.gcp.GcfJarLauncher
--runtime java17
--trigger-http
--source target/deploy
--memory 512MB
deploy fails with above exception.
What works
cd projectRoot
git checkout 4.0.x
mvn clean
cd spring-cloud-function-samples/function-sample-gcp-http
mvn package
gcloud functions deploy function-sample-gcp-http
--entry-point org.springframework.cloud.function.adapter.gcp.GcfJarLauncher
--runtime java17
--trigger-http
--source target/deploy
--memory 512MB
Further Info
I tried JDK20, 21 and 17. All Temurin.
The text was updated successfully, but these errors were encountered: