Skip to content

Commit dc6bea8

Browse files
committed
Add JaCoCo Maven Plugin for Code Coverage Reports
1 parent 1a9724e commit dc6bea8

File tree

1 file changed

+103
-66
lines changed

1 file changed

+103
-66
lines changed

pom.xml

Lines changed: 103 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,22 @@
3939
</repository>
4040
</distributionManagement>
4141

42-
<dependencyManagement>
43-
<dependencies>
42+
<dependencyManagement>
43+
<dependencies>
4444

45-
<dependency>
46-
<groupId>io.spring.platform</groupId>
47-
<artifactId>platform-bom</artifactId>
48-
<version>Brussels-SR4</version>
49-
<type>pom</type>
50-
<scope>import</scope>
51-
</dependency>
45+
<dependency>
46+
<groupId>io.spring.platform</groupId>
47+
<artifactId>platform-bom</artifactId>
48+
<version>Brussels-SR4</version>
49+
<type>pom</type>
50+
<scope>import</scope>
51+
</dependency>
5252

53-
<dependency>
54-
<groupId>com.introproventures</groupId>
55-
<artifactId>graphql-jpa-query-annotations</artifactId>
56-
<version>${project.version}</version>
57-
</dependency>
53+
<dependency>
54+
<groupId>com.introproventures</groupId>
55+
<artifactId>graphql-jpa-query-annotations</artifactId>
56+
<version>${project.version}</version>
57+
</dependency>
5858

5959
<dependency>
6060
<groupId>com.introproventures</groupId>
@@ -68,17 +68,17 @@
6868
<version>${project.version}</version>
6969
</dependency>
7070

71-
<dependency>
72-
<groupId>com.graphql-java</groupId>
73-
<artifactId>graphql-java</artifactId>
74-
<version>${graphql-java.version}</version>
75-
</dependency>
71+
<dependency>
72+
<groupId>com.graphql-java</groupId>
73+
<artifactId>graphql-java</artifactId>
74+
<version>${graphql-java.version}</version>
75+
</dependency>
7676

77-
</dependencies>
78-
79-
</dependencyManagement>
77+
</dependencies>
78+
79+
</dependencyManagement>
8080

81-
<dependencies>
81+
<dependencies>
8282

8383
<dependency>
8484
<groupId>org.springframework.boot</groupId>
@@ -97,55 +97,55 @@
9797
<artifactId>h2</artifactId>
9898
<scope>test</scope>
9999
</dependency>
100-
101-
</dependencies>
100+
101+
</dependencies>
102102

103-
<scm>
104-
<connection>scm:git:https://github.com/introproventures/graphql-jpa-query.git</connection>
105-
<developerConnection>scm:git:[email protected]:introproventures/graphql-jpa-query.git</developerConnection>
106-
<url>https://github.com/introproventures/graphql-jpa-query</url>
107-
<tag>HEAD</tag>
108-
</scm>
103+
<scm>
104+
<connection>scm:git:https://github.com/introproventures/graphql-jpa-query.git</connection>
105+
<developerConnection>scm:git:[email protected]:introproventures/graphql-jpa-query.git</developerConnection>
106+
<url>https://github.com/introproventures/graphql-jpa-query</url>
107+
<tag>HEAD</tag>
108+
</scm>
109109

110-
<inceptionYear>2017</inceptionYear>
111-
<url>http://www.introproventures.com</url>
112-
113-
<licenses>
114-
<license>
115-
<name>Apache 2.0</name>
116-
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
117-
</license>
118-
</licenses>
110+
<inceptionYear>2017</inceptionYear>
111+
<url>http://www.introproventures.com</url>
112+
113+
<licenses>
114+
<license>
115+
<name>Apache 2.0</name>
116+
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
117+
</license>
118+
</licenses>
119119

120-
<issueManagement>
121-
<url>https://github.com/introproventures/graphql-jpa-query/issues</url>
122-
<system>GitHub Issues</system>
123-
</issueManagement>
120+
<issueManagement>
121+
<url>https://github.com/introproventures/graphql-jpa-query/issues</url>
122+
<system>GitHub Issues</system>
123+
</issueManagement>
124124

125-
<developers>
126-
<developer>
127-
<email>[email protected]</email>
128-
<name>Igor Dianov</name>
129-
<url>https://github.com/igdianov</url>
130-
<id>igdianov</id>
131-
</developer>
132-
</developers>
125+
<developers>
126+
<developer>
127+
<email>[email protected]</email>
128+
<name>Igor Dianov</name>
129+
<url>https://github.com/igdianov</url>
130+
<id>igdianov</id>
131+
</developer>
132+
</developers>
133133

134134
<build>
135-
<pluginManagement>
136-
<plugins>
137-
<plugin>
138-
<groupId>info.plichta.maven.plugins</groupId>
139-
<artifactId>git-changelog-maven-plugin</artifactId>
140-
<version>0.2.0</version>
141-
</plugin>
142-
<plugin>
143-
<artifactId>maven-resources-plugin</artifactId>
144-
<version>3.0.1</version>
145-
</plugin>
146-
</plugins>
147-
</pluginManagement>
148-
135+
<pluginManagement>
136+
<plugins>
137+
<plugin>
138+
<groupId>info.plichta.maven.plugins</groupId>
139+
<artifactId>git-changelog-maven-plugin</artifactId>
140+
<version>0.2.0</version>
141+
</plugin>
142+
<plugin>
143+
<artifactId>maven-resources-plugin</artifactId>
144+
<version>3.0.1</version>
145+
</plugin>
146+
</plugins>
147+
</pluginManagement>
148+
149149
<plugins>
150150

151151
<plugin>
@@ -270,6 +270,43 @@
270270
</execution>
271271
</executions>
272272
</plugin>
273+
<plugin>
274+
<groupId>org.jacoco</groupId>
275+
<artifactId>jacoco-maven-plugin</artifactId>
276+
<version>0.7.9</version>
277+
<executions>
278+
<!-- Unit tests configuration-->
279+
<execution>
280+
<id>pre-unit-test</id>
281+
<goals>
282+
<goal>prepare-agent</goal>
283+
</goals>
284+
</execution>
285+
<execution>
286+
<id>post-unit-test</id>
287+
<phase>test</phase>
288+
<goals>
289+
<goal>report</goal>
290+
</goals>
291+
</execution>
292+
<!-- Integration tests configuration-->
293+
<execution>
294+
<id>pre-integration-test</id>
295+
<phase>pre-integration-test</phase>
296+
<goals>
297+
<goal>prepare-agent-integration</goal>
298+
</goals>
299+
</execution>
300+
<execution>
301+
<id>post-integration-test</id>
302+
<phase>post-integration-test</phase>
303+
<goals>
304+
<goal>report-integration</goal>
305+
</goals>
306+
</execution>
307+
</executions>
308+
</plugin>
309+
273310
</plugins>
274311
</build>
275312

0 commit comments

Comments
 (0)