From 95702381933b1fabee9120a6554e003fbc2c3ea0 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..003060012b 100644 --- a/plugin-gradle/README.md +++ b/plugin-gradle/README.md @@ -122,6 +122,19 @@ See [ECLIPSE_SCREENSHOTS](../ECLIPSE_SCREENSHOTS.md) for screenshots that demons +### 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 Java source ([google-java-format](https://github.com/google/google-java-format)) ```gradle