Skip to content

Commit

Permalink
Merge pull request #168 from runningcode/no/readme-android
Browse files Browse the repository at this point in the history
Add Android example to gradle plugin readme.
  • Loading branch information
nedtwigg authored Dec 1, 2017
2 parents d349656 + 6f5805b commit 34edc24
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions plugin-gradle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<a name="android"></a>

### 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'
// ...
}
}
```

<a name="google-java-format"></a>

## Applying to Java source ([google-java-format](https://github.com/google/google-java-format))
Expand Down

0 comments on commit 34edc24

Please sign in to comment.