项目作者: stringbean

项目描述 :
sbt plugin for creating dependency lockfiles
高级语言: Scala
项目地址: git://github.com/stringbean/sbt-dependency-lock.git
创建时间: 2019-10-23T15:21:47Z
项目社区:https://github.com/stringbean/sbt-dependency-lock

开源协议:Apache License 2.0

下载


sbt-dependency-lock

Build Status
Codacy grade
Known Vulnerabilities
sbt-dependency-lock Scala version support
GitHub Discussions

An sbt plugin to create a dependency lockfile similar to package-lock.json for npm or Gemfile.lock for RubyGems.

Quickstart

Install the plugin by adding the following to project/plugins.sbt:

  1. addSbtPlugin("software.purpledragon" % "sbt-dependency-lock" % "<version>")

Then generate a lockfile with sbt dependencyLockWrite. This will resolve dependencies and output a lockfile containing
all dependencies (including transitive ones) to build.sbt.lock.

The lockfile can then be checked with sbt dependencyLockCheck:

  1. [info] Dependency lock check passed

A mismatch between the lockfile and current dependencies will generate an error report:

  1. [error] (dependencyLockCheck) Dependency lock check failed:
  2. [error] 3 dependencies changed:
  3. [error] org.apache.commons:commons-lang3 (test) -> (compile,test) 3.9
  4. [error] org.scala-lang.modules:scala-xml_2.12 (test) 1.2.0 -> 1.1.0
  5. [error] org.scalactic:scalactic_2.12 (test) 3.0.8 -> 3.0.7
  6. [error] org.scalatest:scalatest_2.12 (test) 3.0.8 -> 3.0.7

See the docs for further information on how the plugin works.