Skip to content

Commit 851aee7

Browse files
committed
Polish "Add README example for package exclusion"
See gh-114
1 parent ce00f18 commit 851aee7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.adoc

+3-2
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,12 @@ The `checkFormat` task is automatically applied when running the standard Gradle
138138

139139
In case you want to exclude a package from being checked, for example if you generate sources, you can do this by adding following configuration:
140140

141-
```
141+
[source,groovy,indent=0,subs="normal"]
142+
----
142143
tasks.withType(io.spring.javaformat.gradle.CheckTask) {
143144
exclude "package/to/exclude"
144145
}
145-
```
146+
----
146147

147148
==== Checkstyle
148149
To enforce checksyle conventions add the checkstyle plugin and include a dependency on `spring-javaformat-checkstyle`:

0 commit comments

Comments
 (0)