Configure versions of maven plugins
[jFCPlib.git] / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2         <modelVersion>4.0.0</modelVersion>
3         <groupId>net.pterodactylus</groupId>
4         <artifactId>jFCPlib</artifactId>
5         <version>0.2-SNAPSHOT</version>
6         <name>jFCPlib</name>
7         <packaging>jar</packaging>
8         <distributionManagement>
9                 <repository>
10                         <id>pterodactylus</id>
11                         <name>pterodactylus.net Maven Repository</name>
12                         <url>scp://maven@maven.pterodactylus.net/home/maven/repository</url>
13                 </repository>
14         </distributionManagement>
15         <dependencies>
16                 <dependency>
17                         <groupId>junit</groupId>
18                         <artifactId>junit</artifactId>
19                         <version>4.12</version>
20                         <scope>test</scope>
21                 </dependency>
22                 <dependency>
23                         <groupId>org.hamcrest</groupId>
24                         <artifactId>hamcrest-integration</artifactId>
25                         <version>1.3</version>
26                 </dependency>
27                 <dependency>
28                         <groupId>org.mockito</groupId>
29                         <artifactId>mockito-all</artifactId>
30                         <version>1.10.19</version>
31                 </dependency>
32                 <dependency>
33                         <groupId>com.google.guava</groupId>
34                         <artifactId>guava</artifactId>
35                         <version>16.0.1</version>
36                 </dependency>
37         </dependencies>
38         <repositories>
39                 <repository>
40                         <id>pterodactylus</id>
41                         <name>pterodactylus.net Maven Repository</name>
42                         <url>http://maven.pterodactylus.net</url>
43                 </repository>
44         </repositories>
45         <properties>
46                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
47                 <plugin.compiler.version>3.3</plugin.compiler.version>
48                 <plugin.source.version>2.4</plugin.source.version>
49                 <plugin.javadoc.version>2.10.3</plugin.javadoc.version>
50                 <plugin.jacoco.version>0.7.1.201405082137</plugin.jacoco.version>
51         </properties>
52         <build>
53                 <plugins>
54                         <plugin>
55                                 <groupId>org.apache.maven.plugins</groupId>
56                                 <artifactId>maven-compiler-plugin</artifactId>
57                                 <version>${plugin.compiler.version}</version>
58                                 <configuration>
59                                         <source>1.8</source>
60                                         <target>1.8</target>
61                                         <encoding>UTF-8</encoding>
62                                 </configuration>
63                         </plugin>
64                         <plugin>
65                                 <groupId>org.apache.maven.plugins</groupId>
66                                 <artifactId>maven-javadoc-plugin</artifactId>
67                                 <version>${plugin.javadoc.version}</version>
68                                 <executions>
69                                         <execution>
70                                                 <id>attach-javadocs</id>
71                                                 <goals>
72                                                         <goal>jar</goal>
73                                                 </goals>
74                                         </execution>
75                                 </executions>
76                         </plugin>
77                         <plugin>
78                                 <groupId>org.apache.maven.plugins</groupId>
79                                 <artifactId>maven-source-plugin</artifactId>
80                                 <version>${plugin.source.version}</version>
81                                 <executions>
82                                         <execution>
83                                                 <id>attach-sources</id>
84                                                 <goals>
85                                                         <goal>jar</goal>
86                                                 </goals>
87                                         </execution>
88                                 </executions>
89                         </plugin>
90                         <plugin>
91                                 <groupId>org.jacoco</groupId>
92                                 <artifactId>jacoco-maven-plugin</artifactId>
93                                 <version>${plugin.jacoco.version}</version>
94                                 <executions>
95                                         <execution>
96                                                 <id>default-prepare-agent</id>
97                                                 <goals>
98                                                         <goal>prepare-agent</goal>
99                                                 </goals>
100                                         </execution>
101                                         <execution>
102                                                 <id>default-report</id>
103                                                 <phase>prepare-package</phase>
104                                                 <goals>
105                                                         <goal>report</goal>
106                                                 </goals>
107                                         </execution>
108                                         <execution>
109                                                 <id>default-check</id>
110                                                 <phase/>
111                                                 <goals>
112                                                         <goal>check</goal>
113                                                 </goals>
114                                                 <configuration>
115                                                         <rules>
116                                                                 <!--  implmentation is needed only for Maven 2  -->
117                                                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
118                                                                         <element>BUNDLE</element>
119                                                                         <limits>
120                                                                                 <!--  implmentation is needed only for Maven 2  -->
121                                                                                 <limit implementation="org.jacoco.report.check.Limit">
122                                                                                         <counter>COMPLEXITY</counter>
123                                                                                         <value>COVEREDRATIO</value>
124                                                                                         <minimum>0.60</minimum>
125                                                                                 </limit>
126                                                                         </limits>
127                                                                 </rule>
128                                                         </rules>
129                                                 </configuration>
130                                         </execution>
131                                 </executions>
132                         </plugin>
133                 </plugins>
134         </build>
135 </project>