aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Eluard <[email protected]>2012-02-02 22:46:03 -0200
committerJulien Eluard <[email protected]>2012-02-02 22:46:03 -0200
commit90afc789bd65e48871b8782c7bbf1f5e3c76fbed (patch)
treeb54899206e2d37fae93ad45eee83c2830218c097
parentdf34d8ddd3e94886b929dbb9355381cbb1d267e3 (diff)
Update README.md
-rwxr-xr-xREADME.md65
1 files changed, 65 insertions, 0 deletions
diff --git a/README.md b/README.md
index c61dab5..665b7fd 100755
--- a/README.md
+++ b/README.md
@@ -112,6 +112,20 @@ the maven-enforcer-plugin and then configure the maven-enforcer-plugin to run th
Once you have configured your project, maven-enforcer will be able to throw a build error if current version is not backward compatible with last released one.
+You can force strict checking (i.e. compatibility type must exactly match specified one):
+
+```xml
+<configuration>
+ <rules>
+ <requireBackwardCompatibility implementation="org.semver.enforcer.RequireBackwardCompatibility">
+ ...
+ <strictChecking>true</strictChecking>
+ ...
+ </requireBackwardCompatibility>
+ </rules>
+</configuration>
+```
+
## Checking a project's version
In order to check your project's version, you must add the enforcer rule as a dependency to
@@ -166,6 +180,57 @@ the maven-enforcer-plugin and then configure the maven-enforcer-plugin to run th
Once you have configured your project, maven-enforcer will be able to throw a build error if current version follows semantic versioning principles.
+## Dumping details
+
+Dump details of detected changes:
+
+```xml
+<configuration>
+ <rules>
+ <require...>
+ ...
+ <dumpDetails>true</dumpDetails>
+ ...
+ </require...>
+ </rules>
+</configuration>
+```
+
+## Checking against a wekk known version
+
+You can force check with a well known version:
+
+```xml
+<configuration>
+ <rules>
+ <require...>
+ ...
+ <previousVersion>1.0.0</previousVersion>
+ ...
+ </require...>
+ </rules>
+</configuration>
+```
+
+## Filtering
+
+Both rules allow to filter classes/packages:
+
+```xml
+<require...>
+ ...
+ <includes>
+ <include>org.project.MyClass</include>
+ <include>org.project.internal</include>
+ </includes>
+ <excludes>
+ <exclude>org.project.MyClass</exclude>
+ <exclude>org.project.internal</exclude>
+ </excludes>
+ ...
+</require...>
+```
+
# API overview
Semantic Versioning also provides an API for programmatically validating your project's version number.