Skip to content

Shade JSON API in annotation-processor #10307

Closed
@snicoll

Description

@snicoll

#9248 is now generating a warning if two competing JSON APIs are on the classpath.

As far as I can see, spring-boot-configuration-processor is the only component that pulls that in. An annotation processor is typically added via an "optional" dependency but, regardless, that JSON API becomes available to the project's classpath.

Two side effects:

  • You may want to code against that API and then be surprised that your code doesn't work because the annotation processor is (and should not be) added as transitive
  • If you add a JSON API (as you should) you automatically get a duplicate warning message and no way to fix it.

Also, the JSON api we use is not in dependency management so users can't even chose that if they don't have an opinion regarding the implementation.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions