A sbt 0.13 plugin to create
lock.sbt file which explicitly specifies
versions of all dependent libraries.
Your application or dependent libraries might contain loose version
[1.0,) (means version 1.0 or later),
In this case, builds might become different by a newer release of
This plugin strictly specifies versions by
Add the following line to
~/.sbt/0.13/plugins/sbt-lock.sbt for sbt 0.13.x,
~/.sbt/1.0/plugins/sbt-lock.sbt for sbt 1.0.x or
addSbtPlugin("com.github.tkawachi" % "sbt-lock" % "0.5.0")
dependencyOverridesfor all dependent library versions. Manage it with version control system.
excludeDependenciescould be used to exclude some dependencies from locking. This could be required for platform-specific dependencies (e.g. Netty native)
import com.github.tkawachi.sbtlock._ val settings: Seq[Setting[_]] = Seq( excludeDependencies in SbtLockKeys.lock := Seq( "org.reactivemongo" % "reactivemongo-shaded-native" ) )