Skip to content

Commit 582967d

Browse files
ilyastuitnaturalprogrammer
authored andcommitted
Added jacaco plugin
1 parent 2307248 commit 582967d

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

lemon-demo-jpa/pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,27 @@
5050
<groupId>org.springframework.boot</groupId>
5151
<artifactId>spring-boot-maven-plugin</artifactId>
5252
</plugin>
53+
54+
<plugin>
55+
<groupId>org.jacoco</groupId>
56+
<artifactId>jacoco-maven-plugin</artifactId>
57+
<version>${jacacoVersion}</version>
58+
<executions>
59+
<execution>
60+
<goals>
61+
<goal>prepare-agent</goal>
62+
</goals>
63+
</execution>
64+
<execution>
65+
<id>report</id>
66+
<phase>test</phase>
67+
<goals>
68+
<goal>report</goal>
69+
</goals>
70+
</execution>
71+
</executions>
72+
</plugin>
73+
5374
</plugins>
5475
</build>
5576

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
102102
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
103103
<java.version>1.8</java.version>
104+
<jacacoVersion>0.8.7</jacacoVersion>
104105
</properties>
105106

106107
<!-- Add Spring repositories -->

0 commit comments

Comments
 (0)