Skip to content

Duplicate dependency declaration in ':module:spring-boot-jackson2' build.gradle #49338

@jxblum

Description

@jxblum

In reviewing the dependencies declared in :module:spring-boot-jackson2 build.gradle, I noticed an api (here) AND an optional (here) dependency declaration on org.springframework:spring-web.

This is benign, but I believe the api declaration is sufficient. Although, outside of generating an "<optional>true</optional>" dependency declaration in the final Maven POM, ATM, I don't recall all the other facilities provided/supported by Spring Boot's custom optional configuration.

In any case, when I look at the final generated and published Maven POM for org.springframework.boot:spring-boot-jackson2 in Maven Central, it is correct. There is only a single compile-time dependency on org.springframework:spring-web as I would expect.

Therefore, I think the optional declaration is safe to remove.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: team-onlyAn issue that's best handled directly by the team rather than a community contribution.type: taskA general task

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions