question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Artifact resolution is unreasonably slow for multi-module projects

See original GitHub issue

note 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:closed
  • Created 11 years ago
  • Reactions:4
  • Comments:76 (38 by maintainers)

github_iconTop GitHub Comments

12reactions
fkirillcommented, Jan 21, 2016

Almost 4 years passed… Look guys, are you serious about SBT at all?

9reactions
dk14commented, Aug 19, 2015

I’ve solved that by watching cats on youtube during resolution: https://www.youtube.com/watch?v=UIrEM_9qvZU.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found