diff --git a/README.md b/README.md
index 63bff95..2b51a54 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ If you want your IDE to stick to the same format, check out [the available confi
### Standard pom.xml
-Add to your pom.xml
+To have your sources automatically formatted on each build, add to your pom.xml:
```xml
@@ -25,7 +25,7 @@ Add to your pom.xml
com.coveo
fmt-maven-plugin
- 1.7.0
+ 1.8.0
@@ -38,6 +38,27 @@ Add to your pom.xml
```
+If you prefer, you can only check formatting at build time using the `check` goal:
+
+```xml
+
+
+
+ com.coveo
+ fmt-maven-plugin
+ 1.8.0
+
+
+
+ check
+
+
+
+
+
+
+```
+
### Options
`sourceDirectory` represents the directory where your Java sources that need to be formatted are contained. It defaults to `${project.build.sourceDirectory}`
@@ -57,7 +78,7 @@ example:
com.coveo
fmt-maven-plugin
- 1.7.0
+ 1.8.0
some/source/directory
some/test/directory
diff --git a/pom.xml b/pom.xml
index 44e2436..d5eccb5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.coveo
fmt-maven-plugin
- 1.7.0-SNAPSHOT
+ 1.8.0
maven-plugin
${project.groupId}:${project.artifactId}
diff --git a/src/main/java/com/coveo/FMT.java b/src/main/java/com/coveo/FMT.java
index 70419b6..8679efb 100644
--- a/src/main/java/com/coveo/FMT.java
+++ b/src/main/java/com/coveo/FMT.java
@@ -13,9 +13,7 @@
@Mojo(name = "format", defaultPhase = LifecyclePhase.PROCESS_SOURCES)
public class FMT extends AbstractFMT {
- /**
- * @deprecated Use the {@code fmt:check} goal instead.
- */
+ /** @deprecated Use the {@code fmt:check} goal instead. */
@Deprecated
@Parameter(defaultValue = "false", property = "validateOnly")
private boolean validateOnly;