-
Notifications
You must be signed in to change notification settings - Fork 103
No DependsOnDatabaseInitialization
in Spring Framework modules
#760
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
No DependsOnDatabaseInitialization
in Spring Framework modules
#760
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions could not be made:
- src/test/java/org/openrewrite/java/spring/http/SimplifyWebTestClientCallsTest.java
- lines 21-20
- lines 42-41
- lines 98-138
will quick check the CI before merging |
...va/org/openrewrite/java/spring/boot2/DatabaseComponentAndBeanInitializationOrderingTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions could not be made:
- src/test/java/org/openrewrite/java/spring/http/SimplifyWebTestClientCallsTest.java
- lines 21-20
- lines 42-41
- lines 98-138
PR blocked by false results of ModuleHasDependencies openrewrite/rewrite-java-dependencies#149 |
…lization-in-framework
…rative recipe to enable scanning recipe as precondition
...rewrite/java/spring/boot2/DatabaseComponentAndBeanInitializationOrderingUnconditionally.java
Outdated
Show resolved
Hide resolved
…entAndBeanInitializationOrderingUnconditionally.java Co-authored-by: Tim te Beek <[email protected]>
What's changed?
added a precondition to check the modules classpath for spring-boot dependency. Within spring framwork modules this can otherwise lead to compilation failures
What's your motivation?
Prevent the adition of
@DependsOnDatabaseInitialization
in Spring Framework only modules.Anything in particular you'd like reviewers to focus on?
Anyone you would like to review specifically?
Have you considered any alternatives or workarounds?
Any additional context
no unit test provided due to class path pollution in tests see.
Done manual tests with CLI.
Checklist