|
6 | 6 |
|
7 | 7 | <groupId>com.mailgun</groupId> |
8 | 8 | <artifactId>mailgun-java</artifactId> |
9 | | - <version>1.1.6</version> |
| 9 | + <version>2.0.0</version> |
10 | 10 | <packaging>jar</packaging> |
11 | 11 |
|
12 | 12 | <name>${project.groupId}:${project.artifactId}</name> |
|
104 | 104 | <version>${junit-jupiter.version}</version> |
105 | 105 | <scope>test</scope> |
106 | 106 | </dependency> |
| 107 | + <dependency> |
| 108 | + <groupId>org.mockito</groupId> |
| 109 | + <artifactId>mockito-core</artifactId> |
| 110 | + <version>5.5.0</version> |
| 111 | + <scope>test</scope> |
| 112 | + </dependency> |
107 | 113 | <dependency> |
108 | 114 | <groupId>com.github.tomakehurst</groupId> |
109 | 115 | <artifactId>wiremock</artifactId> |
|
177 | 183 | </excludes> |
178 | 184 | </configuration> |
179 | 185 | </plugin> |
| 186 | + <plugin> |
| 187 | + <groupId>org.jacoco</groupId> |
| 188 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 189 | + <version>0.8.13</version> |
| 190 | + <configuration> |
| 191 | + <excludes> |
| 192 | + <exclude>**/*.yml</exclude> |
| 193 | + <exclude>**/*.tf</exclude> |
| 194 | + <exclude>**/*.sh</exclude> |
| 195 | + <exclude>**/*.yaml</exclude> |
| 196 | + <exclude>**/*.xml</exclude> |
| 197 | + <exclude>**/*.properties</exclude> |
| 198 | + <exclude>**/*.avsc</exclude> |
| 199 | + <exclude>**/config/*</exclude> |
| 200 | + <exclude>**/com/mailgun/model/**</exclude> |
| 201 | + <exclude>**/com/mailgun/enums/**</exclude> |
| 202 | + <exclude>**/com/mailgun/exception/**</exclude> |
| 203 | + </excludes> |
| 204 | + </configuration> |
| 205 | + <executions> |
| 206 | + <execution> |
| 207 | + <id>pre-unit-prepare</id> |
| 208 | + <goals> |
| 209 | + <goal>prepare-agent</goal> |
| 210 | + </goals> |
| 211 | + <configuration> |
| 212 | + <destFile>${project.build.directory}/jacoco-ut.exec</destFile> |
| 213 | + </configuration> |
| 214 | + </execution> |
| 215 | + <execution> |
| 216 | + <id>pre-integration-prepare</id> |
| 217 | + <goals> |
| 218 | + <goal>prepare-agent-integration</goal> |
| 219 | + </goals> |
| 220 | + <configuration> |
| 221 | + <destFile>${project.build.directory}/jacoco-it.exec</destFile> |
| 222 | + </configuration> |
| 223 | + </execution> |
| 224 | + <execution> |
| 225 | + <id>report-unit</id> |
| 226 | + <phase>test</phase> |
| 227 | + <goals> |
| 228 | + <goal>report</goal> |
| 229 | + </goals> |
| 230 | + <configuration> |
| 231 | + <outputDirectory>${project.build.directory}/jacoco-ut</outputDirectory> |
| 232 | + <dataFile>${project.build.directory}/jacoco-ut.exec</dataFile> |
| 233 | + </configuration> |
| 234 | + </execution> |
| 235 | + <execution> |
| 236 | + <id>report-integration</id> |
| 237 | + <phase>verify</phase> |
| 238 | + <goals> |
| 239 | + <goal>report</goal> |
| 240 | + </goals> |
| 241 | + <configuration> |
| 242 | + <outputDirectory>${project.build.directory}/jacoco-it</outputDirectory> |
| 243 | + <dataFile>${project.build.directory}/jacoco-it.exec</dataFile> |
| 244 | + </configuration> |
| 245 | + </execution> |
| 246 | + </executions> |
| 247 | + </plugin> |
180 | 248 | </plugins> |
181 | 249 | </build> |
182 | 250 |
|
|
0 commit comments