Reputation: 2215
My project has few snapshot dependencies in the build.sbt
file like this:
Seq("com.asr.project.myproject.urproject" %% "asr-app" % "0.0.0+")
I am executing sbt update
to get the latest dependencies.
Prior to this, I have recently published artifacts with latest SNAPSHOT versions for few dependencies.
By the definition sbt update
should have checked for the latest dependencies versions on the repository but it doesn't seem to be working like that.
Upvotes: 2
Views: 858
Reputation: 2215
sbt
uses coursier plugin to manage the dependency tree and the coursier plugin maintains the lifetime of the artifacts in the cache.
When a dependency is downloaded, it is not going to be checked for any updates for next 24 hours(Default).
This behavior can be altered by setting COURSIER_TTL
as an environment variable (e.g export COURSIER_TTL=0s
). Running sbt update
alone will not have any effect without it. https://get-coursier.io/docs/ttl
Upvotes: 2
Reputation: 8539
Probably what you need is:
libraryDependencies ++= Seq(
"com.asr.project.myproject.urproject" %% "asr-app" % "0.0.+"
)
as described in Ivy revisions, or at Fixed and dynamic revisions with more details.
Upvotes: 0