From ef228d420e27ccdf155c7ea730756c1964c73230 Mon Sep 17 00:00:00 2001 From: Nelson Osacky Date: Mon, 27 Nov 2017 18:50:10 +0100 Subject: [PATCH] Add Android example to gradle plugin readme. Ref #111 --- plugin-gradle/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/plugin-gradle/README.md b/plugin-gradle/README.md index 78c57d85bd..48f6c2fbd6 100644 --- a/plugin-gradle/README.md +++ b/plugin-gradle/README.md @@ -134,6 +134,19 @@ spotless { } ``` +## Applying to Android Java source +Be sure to add `target "**/*.java` otherwise spotless will not detect Java code inside Android modules. + +```gradle +spotless { + java { + // ... + target "**/*.java" + // ... + } +} +``` + ## Applying to Groovy source