Is there a command in the SBT console that forces it to resolve artifacts (especially, re-resolve SNAPSHOT dependencies)? The only way I know of now is to run clean and then compile (or start), but this takes much longer and isn't always necessary.
Asked
Active
Viewed 271 times
3 Answers
5
You can mark the needed dependencies to re-check them on update
:
libraryDependencies ++= {
"org.specs2" %% "specs2" % "1.10-SNAPSHOT" % "test" changing()
}
-
I don't think the `changing()` is needed anymore in sbt 0.13.x. Should be set by default... – jsuereth Mar 08 '14 at 14:28
1
The update
command should help.
From the task's documentation:
Resolves and optionally retrieves dependencies, producing a report.
See Dependency Management Flow.
What's more important, SNAPSHOT
dependencies are in their nature changing()
so there's no need to add anything after ModuleID to mark them as such. Every update
is supposed to resolve them against the repositories.

Jacek Laskowski
- 72,696
- 27
- 242
- 420
0
Perhaps update-classifiers
is what you are looking for? Otherwise, try the tasks
command to see what's available.

Emil L
- 20,219
- 3
- 44
- 65