Skip to content

spring-security-config kotlin-stdlib-jdk8 dependency isn't optional #9811

@bturner

Description

@bturner

Describe the bug
spring-security-config 5.4.x and prior had <optional>true</optional> dependencies on Kotlin. In 5.5.0 the <optional/> tag has been removed, even though the Gradle file for spring-security-config still indicates it's optional.

To Reproduce

  • Add Maven dependency on spring-security-config
  • Run mvn dependency:tree and observe that kotlin-stdlib-jdk8 and others are compile-scoped dependencies

Expected behavior

  • Kotlin should not be a hard dependency unless I'm using something that requires it

Notes
I'd assume this was intentional, except that I don't see any changes in the Gradle build for spring-security-config related to Kotlin--it's still shown as optional there. The new features talk about Reactive extension support for Kotlin, which made me wonder if perhaps that's what triggered this. If it's intentional, my apologies for the noise.

Metadata

Metadata

Assignees

Labels

in: buildAn issue in the buildstatus: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions