All Projects → rtimush → Sbt Updates

rtimush / Sbt Updates

Licence: bsd-3-clause
sbt plugin that can check Maven and Ivy repositories for dependency updates

Programming Languages

scala
5932 projects

Projects that are alternatives of or similar to Sbt Updates

Xsbt Web Plugin
Servlet support for sbt
Stars: ✭ 381 (-41.65%)
Mutual labels:  sbt, sbt-plugin
Sbt Buildinfo
I know this because build.sbt knows this.
Stars: ✭ 486 (-25.57%)
Mutual labels:  sbt, sbt-plugin
sbt-example
Run Scaladoc as unit tests
Stars: ✭ 30 (-95.41%)
Mutual labels:  sbt, sbt-plugin
chuckwagon
a Scala/sbt AWS Lambda Toolkit
Stars: ✭ 29 (-95.56%)
Mutual labels:  sbt, sbt-plugin
sbt-hepek
Sbt plugin for rendering Scala objects to files. And more!
Stars: ✭ 17 (-97.4%)
Mutual labels:  sbt, sbt-plugin
sbt-flaky
Detect flaky tests with sbt
Stars: ✭ 35 (-94.64%)
Mutual labels:  sbt, sbt-plugin
sbt-elm
Scala Build Tool (SBT) plugin for the Elm programming language
Stars: ✭ 44 (-93.26%)
Mutual labels:  sbt, sbt-plugin
sbt-travisci
An sbt plugin to integrate with Travis CI
Stars: ✭ 44 (-93.26%)
Mutual labels:  sbt, sbt-plugin
sbt-jni
SBT Plugin to ease working with JNI
Stars: ✭ 110 (-83.15%)
Mutual labels:  sbt, sbt-plugin
sbt-ecr
An SBT plugin for managing Docker images within Amazon ECR.
Stars: ✭ 52 (-92.04%)
Mutual labels:  sbt, sbt-plugin
xsbt-webstart
A Webstart plugin for sbt
Stars: ✭ 12 (-98.16%)
Mutual labels:  sbt, sbt-plugin
sbt-assembly
Deploy über-JARs. Restart processes. (port of codahale/assembly-sbt)
Stars: ✭ 1,801 (+175.8%)
Mutual labels:  sbt, sbt-plugin
sbt-bazel
Easily convert SBT projects to Bazel workspaces
Stars: ✭ 55 (-91.58%)
Mutual labels:  sbt, sbt-plugin
Soteria
Plugin to block compilation when unapproved dependencies are used or code styling does not comply.
Stars: ✭ 36 (-94.49%)
Mutual labels:  sbt, sbt-plugin
sbt-project-switcher
A sbt plugin to switch project in a snappy way⚡️
Stars: ✭ 36 (-94.49%)
Mutual labels:  sbt, sbt-plugin
sbt-kubeyml
Sbt plugin to help deploy Scala applications to Kubernetes
Stars: ✭ 37 (-94.33%)
Mutual labels:  sbt, sbt-plugin
sbt-swagger-2
sbt plugin for generating Swagger JSON schemas during build
Stars: ✭ 13 (-98.01%)
Mutual labels:  sbt, sbt-plugin
sbt-rewarn
Make sbt always display compilation warnings, even for unchanged files.
Stars: ✭ 42 (-93.57%)
Mutual labels:  sbt, sbt-plugin
sbt-ammonite-classpath
Export the classpath for Ammonite and Almond
Stars: ✭ 29 (-95.56%)
Mutual labels:  sbt, sbt-plugin
sbt-publish-more
📤 Publish artifacts to more than one repository
Stars: ✭ 21 (-96.78%)
Mutual labels:  sbt, sbt-plugin

sbt-updates

Display your sbt project's dependency updates.

Update information is obtained from the maven metadata. There is also a limited support for Ivy repositories hosted on BinTray.

If your project uses crossScalaVersions you will be presented only with updates available for all scala versions.

Requirements

sbt 0.13.9 and later. sbt 1.x is supported since version 0.3.1.

Installation

Stable version

Create a ~/.sbt/1.0/plugins/sbt-updates.sbt file (for sbt 1.x series), or ~/.sbt/0.13/plugins/sbt-updates.sbt (for sbt 0.13.x series) with the following content:

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

The latest version is Maven Central

Snapshot version

Choose one of versions available on Sonatype. Then create a ~/.sbt/1.0/plugins/sbt-updates.sbt file (for sbt 1.x series), or ~/.sbt/0.13/plugins/sbt-updates.sbt (for sbt 0.13.x series) with the following content:

resolvers += Resolver.sonatypeRepo("snapshots")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "x.x.x-y+gzzzzzzz-SNAPSHOT")

Note, that snapshots are not updated automatically.

Tasks

  • dependencyUpdates: show a list of project dependencies that can be updated,
  • dependencyUpdatesReport: writes a list of project dependencies to a file.

Settings

  • dependencyUpdatesReportFile: report file location, target/dependency-updates.txt by default.
  • dependencyUpdatesFilter: filter matching dependencies that should be included to update reporting.
  • dependencyUpdatesFailBuild: dependencyUpdates task will fail a build if updates found.
  • dependencyAllowPreRelease: when enabled, pre-release dependencies will be reported as well.

Deprecated Settings

  • dependencyUpdatesExclusions: filter matching dependencies that should be excluded from update reporting.

Exclusions

You can exclude some modules from update checking:

dependencyUpdatesFilter -= moduleFilter(organization = "org.scala-lang")

sbt plugin updates

If sbt-updates is installed in your global file you can get updates for sbt plugins by using the reload plugins command:

> reload plugins
...
> dependencyUpdates
[info] Found 2 dependency updates for project
[info]   com.timushev.sbt:sbt-updates          : 0.3.0  -> 0.3.4 -> 0.4.3
[info]   org.scala-lang:scala-library:provided : 2.10.6          -> 2.12.4
> reload return

Only plugins defined in a project are checked, there is currently no way to check updates for global plugins.

You can also check updates for dependencies and sbt plugins with:

sbt ";dependencyUpdates; reload plugins; dependencyUpdates"

Usage as project plugin

It is preferred to use sbt-updates as a global plugin. Nevertheless, there might be cases when you want to use sbt-updates as a project plugin. In that case, add the plugin definition to project/sbt-updates.sbt. You can then use dependencyUpdates target to find updates for your project. But this way you won't be able to check sbt plugin updates. In order to check both dependency updates and sbt plugin updates, add the plugin to both project and meta project i.e project/sbt-updates.sbt and project/project/sbt-updates.sbt and run:

sbt ";dependencyUpdates; reload plugins; dependencyUpdates; reload return"

Publishing

sbt-updates relies on the repository Maven metadata. If you want to get update notifications for artifacts published by other sbt projects, you should ensure that metadata is updated correctly. One possible way to achieve this is to use sbt-aether-deploy.

Example

In order from left, the result shows current version, patch update version, minor update version and major update version.

> dependencyUpdates
[info] Found 3 dependency updates for test-project
[info]   ch.qos.logback:logback-classic : 0.8   -> 0.8.1 -> 0.9.30 -> 1.0.13
[info]   org.scala-lang:scala-library   : 2.9.1 -> 2.9.3 -> 2.10.3
[info]   org.slf4j:slf4j-api            : 1.6.4 -> 1.6.6 -> 1.7.5
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].