From 66860e6d4c78c752ade5fcaeb18c41c134f6fa52 Mon Sep 17 00:00:00 2001 From: Andrew Ash Date: Tue, 30 Apr 2024 15:15:07 -0700 Subject: [PATCH] Document how to enable checkUnusedDependencies --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 65549580e..3ce5f299d 100644 --- a/README.md +++ b/README.md @@ -386,6 +386,16 @@ checkImplicitDependencies { } ``` +These tasks are created by default, but are not configured to run as part of `check`. To do that, add to the root `/build.gradle`: + +```gradle +allprojects { + apply plugin: 'java-library' + + tasks.check.dependsOn checkUnusedDependencies, checkImplicitDependencies +} +``` + ## com.palantir.baseline-encoding This plugin sets the encoding for JavaCompile tasks to `UTF-8`.