27
27
<maven .compiler.version>3.14.0</maven .compiler.version>
28
28
<surefire-version >3.5.3</surefire-version >
29
29
<argLine >-Dfile.encoding=UTF-8 -Xdebug -Xnoagent</argLine >
30
- <sonar .host.url>https://sonarcloud.io</sonar .host.url>
31
- <sonar .report>${project.basedir} /target/reports/jacoco.exec</sonar .report>
32
- <sonar .organization>mfaisalkhatri</sonar .organization>
33
- <sonar .report>${project.basedir} /reports/jacoco.exec</sonar .report>
34
- <sonar .coverage.jacoco.xmlReportPaths>${project.basedir} /target/site/jacoco/jacoco.xml
35
- </sonar .coverage.jacoco.xmlReportPaths>
36
- <sonar .java.source>17</sonar .java.source>
37
- <jacoco .version>0.8.7</jacoco .version>
38
- <sonar .version>5.14.0.18788</sonar .version>
39
- <sonar .java.libraries>target/dependency/*.jar</sonar .java.libraries>
40
30
<maven .dependency.version>3.8.1</maven .dependency.version>
41
31
<java .release.version>17</java .release.version>
42
32
<maven .source.encoding>UTF-8</maven .source.encoding>
156
146
</execution >
157
147
</executions >
158
148
</plugin >
159
- <plugin >
160
- <groupId >org.sonarsource.scanner.maven</groupId >
161
- <artifactId >sonar-maven-plugin</artifactId >
162
- <version >3.9.1.2184</version >
163
- </plugin >
164
- <plugin >
165
- <groupId >org.jacoco</groupId >
166
- <artifactId >jacoco-maven-plugin</artifactId >
167
- <version >${jacoco.version} </version >
168
- <executions >
169
- <execution >
170
- <id >prepare-agent</id >
171
- <goals >
172
- <goal >prepare-agent</goal >
173
- </goals >
174
- <configuration >
175
- <destFile >${sonar.report} </destFile >
176
- <propertyName >surefireArgLine</propertyName >
177
- </configuration >
178
- </execution >
179
- <execution >
180
- <id >report</id >
181
- <phase >test</phase >
182
- <goals >
183
- <goal >report</goal >
184
- </goals >
185
- <configuration >
186
- <dataFile >${sonar.report} </dataFile >
187
- <outputDirectory >${project.reporting.outputDirectory} /jacoco</outputDirectory >
188
- </configuration >
189
- </execution >
190
- </executions >
191
- </plugin >
192
149
</plugins >
193
150
</build >
194
- <profiles >
195
- <profile >
196
- <id >coverage-per-test</id >
197
- <build >
198
- <plugins >
199
- <plugin >
200
- <groupId >org.apache.maven.plugins</groupId >
201
- <artifactId >maven-surefire-plugin</artifactId >
202
- <version >${surefire-version} </version >
203
- <executions >
204
- <execution >
205
- <goals >
206
- <goal >test</goal >
207
- </goals >
208
- </execution >
209
- </executions >
210
- <configuration >
211
- <suiteXmlFiles >
212
- <suiteXmlFile >${suite-xml} </suiteXmlFile >
213
- </suiteXmlFiles >
214
- <argLine >${argLine} ${surefireArgLine} </argLine >
215
- </configuration >
216
- </plugin >
217
- </plugins >
218
- </build >
219
- <dependencies >
220
- <dependency >
221
- <groupId >org.sonarsource.java</groupId >
222
- <artifactId >sonar-jacoco-listeners</artifactId >
223
- <version >${sonar.version} </version >
224
- <scope >test</scope >
225
- </dependency >
226
- </dependencies >
227
- </profile >
228
- </profiles >
229
151
</project >
0 commit comments