-
Notifications
You must be signed in to change notification settings - Fork 38.5k
spring-aspects has a compile dependency on spring-orm #24491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@asibross thanks for the report. This looks like a regression introduced by the Gradle build refactoring. |
Hey @larsgrefer, previously "spring-aspects" had an optional dependency on "spring-orm" (see the POM in 5.1.13.RELEASE and now it seems we're publishing this module with a hard dependency on "spring-orm". Do you know if we can change the "aspect" configuration so that it does not leak as a transitive dependency for that module? I know how to remove the node from our published POM, but that won't solve the issue once we're publishing Gradle metadata. Thanks! |
@bclozel I'll have a look how I can improve this. |
@bclozel What exactly is the point of having Neither I've just compiled |
I've indeed checked the output of the build with and without that change and nothing changes. Thanks @larsgrefer for looking into this and sorry I've bothered you for a mistake on our part! |
Starting from version 5.2.0
spring-orm
is no longer an optional dependency of spring-aspects.https://search.maven.org/artifact/org.springframework/spring-aspects/5.2.0.RELEASE/jar
This causes the below conditional to match which will then try to auto configure a data source.
https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfiguration.java#L52
Was this intentional?
Affects: 5.2.x
The text was updated successfully, but these errors were encountered: