Tracking dependency updates
Tags: github, webdev, java
Published: 2021-01-03 17:01:41

---
title: Tracking dependency updates
published: true
date: 2021-01-03 08:09:32 UTC
tags: Github,webdev,java
canonical_url: https://on-sw-integration.epischel.de/2021/01/03/tracking-dependency-updates/
---

Many software projects use 3rd party libraries aka “dependencies”. You often want to use the most recent version of these dependencies but how do you know when a new release of a dependency is published? The more dependencies your project have the more tiresome a manual approach to “tracking dependency updates” is.

In this post I explore some solutions that tracks dependency updates for you. I cover broad solutions (libraries.io and dependabot) and Java-only solutions (“artifact listener” and a Gradle/Maven plugin).

## Why update?

But why do we want to update dependencies at all?

A new version of a dependency

- may fix bugs that affects your project
- may introduce new features that you could use
- may fix a security issue that affects your project
- may have other optimizations to the code

Of course there is a risk as well: a new version may introduce a bug that affects your project. Plus, there might be API changes that require changes in your code.

## Tracking solutions

### Libraries.io

With their own words

> [Libraries.io](https://libraries.io) can automatically keep track of all of the packages that your repositories depend upon across many different package managers.
> 
> Once synced, Libraries.io will email you about new versions of your dependencies, if you add or remove a new dependency it will change the notifications settings for that package as soon as you push to your repositories.

Repositories on Github, Gitlab and Bitbucket are supported. Plus, you can subscribe to dependencies manually, ie without a repository on any of these platforms.

Beside email notifications you can also subscribe to an RSS feed of your dependency updates.

Libraries.io is an open source project.

### artifact listener

[Artifact Listener](https://www.artifact-listener.org/) is a small service and only available for Java / Maven Central. You can search for libraries and “follow” them. Alternatively you can upload a POM and then choose which dendencies to follow. Updates of libraries you follow are emailed to you.

You can provide additional email adresses to notify, e.g, email addresses of other team members. This is a small but lovely feature for me.

The service is an open source project.

### Dependabot

[Dependabot](https://www.dependabot.com/) checks the “dependency files” (where your dependencies are definied) in your Github repos for updates. If there is an update it creates a PR for it. The PR may contain links, release notes, a list of commits etc.

So this service not only notifies you about an update but even creates a PR that applies it. You just have to merge it (at least if your project is on Github).

Dependabout has been aquired by Github.com and is free of charge.

### Gradle plugin

If you are using Gradle (a Java build system) to declare dependencies and build your project you can use the [Gradle versions plugin](https://github.com/ben-manes/gradle-versions-plugin) to detect dependency updates and report them. It is easy to use. You just need to execute it on a regular basis.

### Maven plugin

Of course, there is a [similar plugin](https://www.mojohaus.org/versions-maven-plugin/index.html) for Maven (another Java build system).

 ![](https://www.epischel.de/analytics/piwik.php?idsite=3&rec=1&url=https%3A%2F%2Fon-sw-integration.epischel.de%2F2021%2F01%2F03%2Ftracking-dependency-updates%2F%3Fpk_campaign%3Dfeed%26pk_kwd%3Dtracking-dependency-updates&action_name=Tracking+dependency+updates&urlref=https%3A%2F%2Fon-sw-integration.epischel.de%2Ffeed%2F)