-
Notifications
You must be signed in to change notification settings - Fork 39
Cannot use plugin tasks due to "org.gradle.api.tasks.bundling.Jar.getArchivePath()" because "jar" is null #432
Comments
I've removed the appengine plugin completely and was able to deploy the app using |
What version of gradle are you using? This seems related to #382; try running adding |
Ah, I see from the other issue it's Gradle 7.5. Yes, try adding the empty jar configuration to see if that's the same issue. |
with the empty But
|
What if you call I think a thin jar might be getting created. |
Maybe this is bc Boot generates 2 jars , 1 normal jar and 1 plain jar. So adding:
Note I had to add this as well when deploying using Cloud Build ( But then
|
Ah! Use this appengine configuration: GoogleCloudPlatform/appengine-plugins#1003 |
Thx that did the trick! |
If anyone is interested the reason why Lines 95 to 96 in f50be8d
Notice the |
I've a minimal Spring Boot application using Java 17 and I'm trying to get AppEngine Gradle plugin to work...
As documented I have set it up like:
settings.gradle:
build.gradle:
but when running any GAE tasks I get:
Even the
bootRun
tasks now fails:If I remove just the
appengine { .. }
configuration block from build.gradle (so GAE plugin itself still configured) the app starts up again withbootRun
...The text was updated successfully, but these errors were encountered: