From e1627bb3ccbbfcbe8cf52a1e5fc773381ce2c673 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Sun, 3 May 2020 13:19:24 -0700 Subject: [PATCH] [build] add ben-manes dependency upgrade finder Problem The mockito build system has several pieces which are out of date. This includes dependencies Solution This plugin adds a new task dependencyUpdates which identifies dependencies which may be out of date --- .github/CONTRIBUTING.md | 4 ++++ build.gradle | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 1cdaaa1fac..5befb7bed7 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -188,3 +188,7 @@ We found vertical alignment helping when reading the code, for that reason we wa 1. For parameter `Throws list` choose : `Do not wrap` 2. For sub-parameter `Align when multiline` tick the checkbox +## Gradle Tips + +1. It is possible to run `./gradlew dependencyUpdates` to find out of date dependencies, including tools. Note that this + may show beta or alpha dependencies. diff --git a/build.gradle b/build.gradle index 7e11a05e1f..5009dc14bd 100644 --- a/build.gradle +++ b/build.gradle @@ -18,6 +18,7 @@ plugins { id 'com.gradle.build-scan' version '2.2.1' id "com.diffplug.gradle.spotless" version "3.24.3" id 'eclipse' + id 'com.github.ben-manes.versions' version '0.28.0' } description = 'Mockito mock objects library core API and implementation'