BisnodeInformatics/version-check

Name: version-check

Owner: Bisnode Informatics Deutschland

Description: A Plugin for Gradle that checks your project dependencies for consistency

Created: 2017-06-01 09:21:56.0

Updated: 2017-09-19 14:16:03.0

Pushed: 2017-06-12 07:26:39.0

Homepage: null

Size: 100

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

version-check

Plugin for Gradle to check update your project dependencies …

It works quite similar to the Enforcer plugin for Maven.

Usage

The simplest way to apply the plugin to your Gradle build is to use the plugin mechanism:

ins {
id "com.bisnode.versioncheck" version "<version>"

Gradle tasks

The plugin comes with two tasks:

Rules
Check for identical versions:

Specify the set of modules that should have the same version

ionCheck {
sameVersionGroups = [ "org.springframework", "org.springframework.boot", "com.fasterxml.jackson.*" ]

The groups are groups in the sense of Maven artifact group IDs. Wildcards (“*“) and placeholders (“?“) are supported.

Which dependencies?

There are two main modes, you can use only the declared dependencies or additionally the transitive dependencies:

Configuration example:

ionCheck {
dependencies = 'transitive'

Configurations

To further customize which dependencies are analyzed, you can specify configurations, for example to include the dependencies that are only needed for tests with the Java plugin:

ionCheck {
configurations 'testRuntime'  // this is the default

Tip: If there are dependencies showing up you have no idea where they are coming from, use gradle dependencies to get an overview of all configurations and the dependencies contained in them. Use it to identifiy the configurations that you want to include.

Multi-project builds

If you have a multi-build project that you want to treat as one single project, you should apply the plugin only to the root project and configure the plugin to include dependencies from sub-projects as well:

ionCheck {
cludeSubProjects = true

License

The MIT license (see the LICENSE file)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.