A plugin for helping detect new versions of dependencies and build plugins and for upgrading those dependencies
and plugins. The update tasks are compatible with nebula.dependency-recommender
and
com.palantir.consistent-versions
versions.props files.
Apply this plugin using the standard Gradle plugin block:
plugins {
// ...
id "com.markelliot.versions" version "0.42.0"
}
Run one of the available tasks:
checkNewVersions
: prints dependencies and plugins with available updates by project, generates areport.yml
file in${buildDir}/com.markelliot.versions/
with the same details.updateVersionsProps
: (root project only) merges allreport.yml
s and updates root project versions.props with the merged recommendations. If two projects produce conflicting version recommendations, no update is applied for that dependency.updatePlugins
: (root project only) merges allreport.yml
s and updates all buildscriptsplugins
blocks that declare a specific plugin version to use the recommended update.updateGradleWrapper
: (root project only) finds agradle-report.yml
and if one exists updates the Gradle wrapper to point at the latest version's new distributionUrl.
This plugin restricts updates such that:
- Recommended versions do not contain
alpha
orbeta
in the version string. - Recommended versions may have empty status metadata or the status must be
release
This repository is subject to the Apache 2.0 License.