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.
Comment From: bturner
Here's the POM on Central, which shows:
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
<version>1.5.0</version>
<scope>compile</scope>
</dependency>
Compared to 5.4.6, which has:
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-reflect</artifactId>
<version>1.4.30</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
<version>1.4.30</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
(The kotlin-reflect dependency appears to have been removed.)
Comment From: eleftherias
@bturner I have pushed a fix to the latest 5.6.0-SNAPSHOT and 5.5.1-SNAPSHOT. Could you please try it out and let me know if it fixes the issue?
Comment From: bturner
@eleftherias Apologies for the delay. I did test the latest snapshot and it looks good.