Artifact resolution is unreasonably slow for multi-module projects
See original GitHub issuenote from sbt team
This issue is now solved using cached resolution feature.
updateOptions := updateOptions.value.withConsolidatedResolution(true)
If anyone has further issues with dependency resolution performance, please provide more context and open a new Github issue.
original report
So I have a multi-module project - dozens of modules - in which many of the modules have very similar (transitive) dependencies. Each day, sbt (v0.11.2) decides it needs to re-check all those dependencies, and it does so independently for each module. So if I have, say, 20 modules depending on slf4j, sbt appears to hit the repository 20 times to re-download exactly the same pom.xml. Multiply that by a hundred-odd dependencies and the whole process is taking a couple of minutes. Seems like some caching or up-front reconciliation would be helpful here.
Issue Analytics
- State:
- Created 11 years ago
- Reactions:4
- Comments:76 (38 by maintainers)
Top Results From Across the Web
How to resolve dependencies between modules within multi ...
Run the fast tests on every build and the slow tests before any checkin of code or release of artifacts. Break a multi-module...
Read more >Svn Checkout Of Multi Module Maven Project Causing Build ...
note from sbt team This issue is now solved using cached resolution feature. Artifact resolution is unreasonably slow for multi-module projects #413.
Read more >Maven is broken by design : r/programming - Reddit
Now I would simply create a multi module maven project with a shared ... No, It's nothing to do with java. maven has...
Read more >Creating Production Artifacts in A Multi-Module Maven Project
These 2 look almost the same. They both compile as JAR files and depend on common (to show you inter-module dependency resolution). At...
Read more >Using Dagger in multi-module apps - Android Developers
In a multi-module project that ships as a single APK with no feature modules, it's common to have an app module that can...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Almost 4 years passed… Look guys, are you serious about SBT at all?
I’ve solved that by watching cats on youtube during resolution: https://www.youtube.com/watch?v=UIrEM_9qvZU.