Skip to content

Make New Kotlin Dependencies Optional #3195

@Nephery

Description

@Nephery

Describe the issue
I noticed that starting from 5.0.0, that there are some new kotlin dependencies that were added:

  • kotlin-reflect
  • kotlinx-coroutines-reactor

When building a fat-jar with Spring Cloud Stream, it is now always packaging these kotlin dependencies, even if my app itself isn't using kotlin.

To Reproduce
Look at https://github.com/spring-cloud/spring-cloud-stream/blob/main/core/spring-cloud-stream/pom.xml#L104-L113

Version of the framework
Spring Cloud Stream 5.0.0

Expected behavior

Looking at other commits around this time frame, I don't see anything new that would need these to now always be required dependencies. Like what was done for #3020 , can these 2 kotlin dependencies also be marked as optional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions