diff --git a/README.md b/README.md index a8ab584..acfd728 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,8 @@ desired value. * lombok.version * digraph-dependency.version * digraph-dependency.basePackage +* required-maven.version +* maven-enforcer-plugin.version * maven-javadoc-plugin.version * maven-source-plugin.version * maven-gpg-plugin.version @@ -44,6 +46,7 @@ desired value. * jacoco-class-instruction-covered-ratio * jacoco-class-missed-count-maximum * java.version +* versions.version ## Checkstyle @@ -65,6 +68,16 @@ following values to select a less-strict ruleset: * 4-tweaks * 5-complexity +## Maven Enforcer Plugin + +Ensures that a suitable version of Maven is being used. + +Runs it's `display-info` and `enforce` goals during the `validate` phase. + +### Configuration + +* requireMavenVersion: ${required-maven.version} + ## Maven Compiler Plugin The [Maven Compiler Plugin](https://maven.apache.org/plugins/maven-compiler-plugin/) @@ -76,8 +89,9 @@ Ref: [compile:compile](https://maven.apache.org/plugins/maven-compiler-plugin/co * showDeprecation: true * showWarnings: true -* source: 1.8 -* target: 1.8 +* source: ${java.version} +* target: ${java.version} +* encoding: ${project.build.sourceEncoding} ## Maven Surefire Plugin diff --git a/pom.xml b/pom.xml index 1e0a85c..7eab6e0 100644 --- a/pom.xml +++ b/pom.xml @@ -26,10 +26,6 @@ 2015 - - 3.0.4 - - The MIT License (MIT) @@ -73,6 +69,8 @@ false true 2.4 + 3.0.4 + 1.4.1 @@ -219,6 +217,31 @@ + + org.apache.maven.plugins + maven-enforcer-plugin + ${maven-enforcer-plugin.version} + + + enforce-maven + validate + + display-info + enforce + + + + + + + ${required-maven.version} + + + ${java.version} + + + + org.apache.maven.plugins maven-clean-plugin