Skip to content
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

spring-aspects has a compile dependency on spring-orm #24491

Closed
asibross opened this issue Feb 8, 2020 · 5 comments
Closed

spring-aspects has a compile dependency on spring-orm #24491

asibross opened this issue Feb 8, 2020 · 5 comments
Assignees
Labels
type: bug A general bug
Milestone

Comments

@asibross
Copy link

asibross commented Feb 8, 2020

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


@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Feb 8, 2020
@snicoll
Copy link
Member

snicoll commented Feb 8, 2020

@asibross thanks for the report. This looks like a regression introduced by the Gradle build refactoring.

@snicoll snicoll added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Feb 8, 2020
@snicoll snicoll added this to the 5.2.4 milestone Feb 8, 2020
@bclozel bclozel self-assigned this Feb 17, 2020
@bclozel
Copy link
Member

bclozel commented Feb 17, 2020

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!

@larsgrefer
Copy link
Contributor

@bclozel I'll have a look how I can improve this.

@larsgrefer
Copy link
Contributor

@bclozel What exactly is the point of having spring-orm on the aspectpath of spring-aspects at all?

Neither spring-orm nor any of its transitive dependencies seem to contain aspects, which could be woven into spring-aspects.

I've just compiled spring-aspects locally once with spring-orm and once without spring-orm on the aspectpath. The output was the same.

@bclozel
Copy link
Member

bclozel commented Feb 17, 2020

I've indeed checked the output of the build with and without that change and nothing changes.
I guess it might have been a detail that was overlooked and just ported over when we reorganized our build.

Thanks @larsgrefer for looking into this and sorry I've bothered you for a mistake on our part!

@rstoyanchev rstoyanchev changed the title spring-aspects has a non-optional compile dependency on spring-orm spring-aspects has a compile dependency on spring-orm Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

5 participants