You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugin-gradle/README.md
+18-7
Original file line number
Diff line number
Diff line change
@@ -207,13 +207,14 @@ spotless {
207
207
208
208
<aname="applying-to-android-java-source"></a>
209
209
210
-
The target is usually inferred automatically from the java source sets. However, Spotless cannot automatically detect [android](https://github.com/diffplug/spotless/issues/111) or [java-gradle-plugin](https://github.com/diffplug/spotless/issues/437) sources, but you can fix this easily:
211
-
212
-
```gradle
213
-
spotless {
214
-
java {
215
-
target 'src/*/java/**/*.java'
216
-
```
210
+
> [!WARNING]
211
+
> The target is usually inferred automatically from the java source sets. However, Spotless cannot automatically detect [android](https://github.com/diffplug/spotless/issues/111) or [java-gradle-plugin](https://github.com/diffplug/spotless/issues/437) sources, but you can fix this easily:
212
+
>
213
+
> ```gradle
214
+
> spotless {
215
+
> java {
216
+
> target 'src/*/java/**/*.java'
217
+
> ```
217
218
218
219
### removeUnusedImports
219
220
@@ -435,6 +436,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T
@@ -453,6 +455,15 @@ spotless { // if you are using build.gradle.kts, instead of 'spotless {' use:
453
455
}
454
456
```
455
457
458
+
> [!WARNING]
459
+
> The target is usually inferred automatically from the java source sets. However, Spotless cannot automatically detect [android](https://github.com/diffplug/spotless/issues/111) or [java-gradle-plugin](https://github.com/diffplug/spotless/issues/437) sources, but you can fix this easily:
0 commit comments