Skip to content
Advertisement

You can’t map a property that does not exist: propertyName=baseName when build using gradle 7.0

Today I upgrade my Gradle version to 7.0, but when I compile the project, shows this error:

JavaScript

and this is my build.gradle file config in the root project(with many modules):

JavaScript

where is the problem and what should I do to fix it? I am search from internet but no one talks about this. This is the full stack exception:

JavaScript

Advertisement

Answer

this is caused by too old spring-boot-gradle-plugin. It is using property which was removed in Gradle 7. I’m checking the history and you would probably need at least version 2.2.2.RELEASE.

I believe the fix has been done as part of Gradle 6 compatibility (see Release Notes)

I haven’t tested that 2.2.2.RELEASE will fix that for sure just guessing based on code changes in the plugin. We are on 2.3.x and that works.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement