-
Notifications
You must be signed in to change notification settings - Fork 363
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
Fix StackOverflowError in case of circular import deps #4284
Fix StackOverflowError in case of circular import deps #4284
Conversation
Check if import dependency was already resolved before
To limit object allocations
Thanks for getting this started @ZhyliaievD ! I've updated your PR a bit to add additional assertions to your test that we indeed get merged. Would you mind double checking that you indeed expect |
Hi @timtebeek |
) * Fix StackOverflowError in case of circular import deps Check if import dependency was already resolved before * Format test, remove unnecessary paths and add issue link * Replace Streams with for loop as per convention To limit object allocations * Swap argument order for consistency * Verify merged managed dependency version --------- Co-authored-by: Daniil Zhyliaiev <dzhyliaiev@playtika.com> Co-authored-by: Tim te Beek <tim@moderne.io>
…ile (#4297) * avoid adding non-existent query as key in case the jsonpath is a query which yelds no result, avoid merging the yaml at end of file with the query as a key * Fix StackOverflowError in case of circular import deps (#4284) * Fix StackOverflowError in case of circular import deps Check if import dependency was already resolved before * Format test, remove unnecessary paths and add issue link * Replace Streams with for loop as per convention To limit object allocations * Swap argument order for consistency * Verify merged managed dependency version --------- Co-authored-by: Daniil Zhyliaiev <dzhyliaiev@playtika.com> Co-authored-by: Tim te Beek <tim@moderne.io> * Give EffectiveManagedDependencies a unique display name * Fix model updating to properly work with transitive dependencies. * Fix test expectation to not break when new versions of flyway-core are released * Deterministic ordering of new constraints * Further enhancements to UpdateGradleWrapper's ability to operate in contexts where services.gradle.org is unavailable * Also enforce that version numbers are literal, rather than dynamic selectors, when services.gradle.org cannot be reached * Fix typo in comment and apply formatter --------- Co-authored-by: Stef <stef.dev.49@gmail.com> Co-authored-by: Daniil Zhyliaiev <yangroang@gmail.com> Co-authored-by: Daniil Zhyliaiev <dzhyliaiev@playtika.com> Co-authored-by: Tim te Beek <tim@moderne.io> Co-authored-by: Sam Snyder <sam@moderne.io>
Check if import dependency was already resolved before
What's changed?
Add a check if import dependency was already resolved before
What's your motivation?
To avoid StackOverflowError in case of circular import deps
Fixes #4093
Checklist