Skip to content

spring-cloud-aws-s3: jackson-databind (com.fasterxml) should be optional #1619

Description

@darrelldraney

In spring-cloud-aws-s3/pom.xml, the com.fasterxml.jackson.core:jackson-databind dependency is not marked as <optional>true</optional>, unlike every other module:

Module com.fasterxml jackson-databind optional?
spring-cloud-aws-sqs Yes
spring-cloud-aws-sns Yes
spring-cloud-aws-secrets-manager Yes
spring-cloud-aws-s3 No

The tools.jackson.core:jackson-databind entry added in #1539 is correctly marked optional. It looks like the existing com.fasterxml entry was missed during that change.

This causes com.fasterxml.jackson.core:jackson-databind (and its transitives jackson-core, jackson-annotations) to leak onto the runtime classpath of any project that depends on spring-cloud-aws-starter-s3, even if the project only uses Jackson 3.

Should this be marked <optional>true</optional> to match the other modules?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions