Merge pull request #75 from kemitix/maven-enforcer
pom.xml: replace prerequisites with maven-enforcer-plugin
This commit is contained in:
commit
e266ff0102
2 changed files with 43 additions and 6 deletions
18
README.md
18
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
|
||||
|
||||
|
|
31
pom.xml
31
pom.xml
|
@ -26,10 +26,6 @@
|
|||
|
||||
<inceptionYear>2015</inceptionYear>
|
||||
|
||||
<prerequisites>
|
||||
<maven>3.0.4</maven>
|
||||
</prerequisites>
|
||||
|
||||
<licenses>
|
||||
<license>
|
||||
<name>The MIT License (MIT)</name>
|
||||
|
@ -73,6 +69,8 @@
|
|||
<pitest.skip>false</pitest.skip>
|
||||
<pitest.failWhenNoMutations>true</pitest.failWhenNoMutations>
|
||||
<versions.version>2.4</versions.version>
|
||||
<required-maven.version>3.0.4</required-maven.version>
|
||||
<maven-enforcer-plugin.version>1.4.1</maven-enforcer-plugin.version>
|
||||
</properties>
|
||||
|
||||
<developers>
|
||||
|
@ -219,6 +217,31 @@
|
|||
</execution>
|
||||
</executions>
|
||||
</plugin><!-- digraph-dependency-maven-plugin -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>${maven-enforcer-plugin.version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>enforce-maven</id>
|
||||
<phase>validate</phase>
|
||||
<goals>
|
||||
<goal>display-info</goal>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<rules>
|
||||
<requireMavenVersion>
|
||||
<version>${required-maven.version}</version>
|
||||
</requireMavenVersion>
|
||||
<requireJavaVersion>
|
||||
<version>${java.version}</version>
|
||||
</requireJavaVersion>
|
||||
</rules>
|
||||
</configuration>
|
||||
</plugin><!-- maven-enforcer-plugin -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-clean-plugin</artifactId>
|
||||
|
|
Loading…
Reference in a new issue