appengine-plugins icon indicating copy to clipboard operation
appengine-plugins copied to clipboard

Appengine gradle plugin does not deploy with java21

Open bogdan-marian opened this issue 8 months ago • 1 comments
trafficstars

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.

bogdan-marian avatar Mar 10 '25 10:03 bogdan-marian

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.

ludoch avatar Mar 10 '25 17:03 ludoch

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.

bogdan-marian avatar Mar 29 '25 08:03 bogdan-marian

Please let me know if the test did not work. I'll downgrade this to P3 for now.

jinseopkim0 avatar Mar 31 '25 21:03 jinseopkim0