The Dependency Checker Gradle plugin lets you warn users if a specific configuration dependency is not the latest one available from the Maven central repository. The plugin eventually fails the build if the dependency age (the difference between the timestamp of the current version and the latest version) is above a predetermined threshold.
The plugin has been successfully tested with Gradle 4.10.2.
To use the plugin, include it in your build script:
classpath group: "com.liferay", name: "com.liferay.gradle.plugins.dependency.checker", version: "1.0.3"
apply plugin: "com.liferay.dependency.checker"
The Dependency Checker Gradle plugin exposes the following properties through
the extension named
|Whether to print an error message instead of failing the build when the dependency check fails, either for a network error or because the dependency is out-of-date.
The same extension exposes the following methods:
void maxAge(Map<?, ?> args)
|Declares the max age allowed for a dependency. The
args map must contain the following entries:
There are additional configurations that can help you use the Deployment Helper.
It is possible to set the default values of the
property via the project property