mattbertolini / spring-annotated-web-data-binder

Bind query params, form data, headers, cookies, session data, and more to a Java bean in Spring MVC and Spring WebFlux
Apache License 2.0
27 stars 4 forks source link

Warning: dependencies.dependency.version for javax.servlet-api is missing #11

Closed nikolavojicic closed 9 months ago

nikolavojicic commented 9 months ago

I'm getting this warning:

> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
Errors occurred while build effective model from C:\Users\nikol\.gradle\caches\modules-2\files-2.1\com.mattbertolini\spring-webmvc-annotated-data-binder\0.5.0\7704370e554c6f598147467c65471061a0d4909f\spring-webmvc-annotated-data-binder-0.5.0.pom:
    'dependencies.dependency.version' for javax.servlet:javax.servlet-api:jar is missing. in com.mattbertolini:spring-webmvc-annotated-data-binder:0.5.0

> Task :Application.main()

I've tried to stifle it by specifying the version but it didn't work:

implementation 'javax.servlet:javax.servlet-api:4.0.1'

Exclusion didn't help either.

mattbertolini commented 9 months ago

Hi @nikolavojicic. This has not appeared in my testing before so thanks for the report.

Could I ask you a few questions?

I think the issue has to do with the fact that I am attempting to populate the version via a parent Gradle file using a platform. That may not work when it comes to publishing the POM file to Maven Central. I've made a bunch of changes to the build since the 0.5.0 release. Maybe some of those changes will help populate this correctly.

I've published 0.6.0-SNAPSHOT to the Maven Central Snapshot Repository (https://oss.sonatype.org/content/repositories/snapshots/). If possible, could you try pulling that down and seeing if the error goes away. Based on the changes to the generated POM, I think they might. If it does fix the issue, I can push the 0.6.0 release. The code hasn't changed, just a restructuring of the build.

nikolavojicic commented 9 months ago

Thanks for the fast feedback!

mattbertolini commented 9 months ago

I'm glad the snapshot fixed the warning. I've published version 0.6.0 to Maven Central. Thanks for reporting it.