Sunday 14 February 2016

Keep your SBT projects' dependencies up to date

There is a simple SBT plugin to check if there are never versions of libraries used by SBT projects.

https://github.com/rtimush/sbt-updates

You may add it to your project (why not?), but you can also keep it separately, especially when you quickly want to check several projects.

Create a file:

~/.sbt/0.13/plugins/sbt-updates.sbt

and add such content there:

addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.1.10")

After that you can run

sbt dependencyUpdates

or just type "sbt" and later, in the console, use keyword expansion to save on typing...

> dependencyUpdates
[info] Found 4 dependency updates for minimal-akka-scala-seed
[info]   com.typesafe.akka:akka-actor        : 2.3.11 -> 2.3.14 -> 2.4.1
[info]   com.typesafe.akka:akka-testkit:test : 2.3.11 -> 2.3.14 -> 2.4.1
[info]   org.scala-lang:scala-library        : 2.11.6 -> 2.11.7      
[info]   org.scalatest:scalatest:test        : 2.2.4  -> 2.2.6       
[success] Total time: 1 s, completed 14-Feb-2016 00:27:55