diff --git a/plugin-gradle/README.md b/plugin-gradle/README.md index 78c57d85bd..7ca47dbcfc 100644 --- a/plugin-gradle/README.md +++ b/plugin-gradle/README.md @@ -120,6 +120,21 @@ spotless { See [ECLIPSE_SCREENSHOTS](../ECLIPSE_SCREENSHOTS.md) for screenshots that demonstrate how to get and install the eclipseFormatFile and importOrderFile mentioned above. + + +### 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))