appengine-plugins
appengine-plugins copied to clipboard
Appengine gradle plugin does not deploy with java21
It seams that appengine gradle plugin does not support java21. Is this correct?
I'm trying to deploy a new project to appengine standrd using java21 I get this error
Execution failed for task ':appengineStage'.
> com.google.cloud.tools.appengine.AppEngineException: Cannot process application with runtime: java21
I'm currently stuck.
Weird, support was added in https://github.com/GoogleCloudPlatform/appengine-plugins/commit/8dd95c403925bd96830aeafae4e724bace34ad85 Can you share more information? Any extra message regarding the entrypoint not defined? See error message https://github.com/GoogleCloudPlatform/appengine-plugins/blob/983767ad46763b7528c082e267cac31e186025b8/appengine-plugins-core/src/main/java/com/google/cloud/tools/appengine/operations/AppYamlProjectStaging.java#L98 Maybe your build target does not produce an executable jar, so we cannot determine what needs to be run when booting the clone.
Thanks for the update and the pointer to the commit — and apologies for not taking the time to test it yet.
Unfortunately, due to the current economic climate, my company recently went bankrupt and my main priority right now is job hunting. I haven’t been able to allocate time to verify if this fixes the issue.
It would still be great to have a Gradle-based example or codelab for this, similar to the Maven one here:
appengine-standard-maven-spring-boot https://codelabs.developers.google.com/codelabs/cloud-app-engine-springboot#2
that kind of resource would help a lot of developers streamline their setup.
I’ll definitely try and see if I can fix this as soon as things calm down on my end.
Please let me know if the test did not work. I'll downgrade this to P3 for now.