|
37 | 37 | </issueManagement> |
38 | 38 | <properties> |
39 | 39 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
40 | | - <spring-version>3.3.5</spring-version> |
41 | | - <spring-integration-version>6.3.5</spring-integration-version> |
42 | | - <jmockit-version>1.49.2</jmockit-version> |
43 | | - <junit-jupiter-version>5.11.3</junit-jupiter-version> |
| 40 | + <spring.version>3.3.5</spring.version> |
| 41 | + <spring-integration.version>6.3.5</spring-integration.version> |
| 42 | + <jmockit.version>1.55.0</jmockit.version> |
| 43 | + <junit-jupiter.version>5.11.3</junit-jupiter.version> |
| 44 | + <mockito.version>5.14.2</mockito.version> |
44 | 45 | <application.version>${project.version}</application.version> |
| 46 | + <jacoco.version>0.8.12</jacoco.version> |
| 47 | + <sonar.projectKey>Software-Development-Simulation</sonar.projectKey> |
| 48 | + <sonar.projectName>Software Development Simulation</sonar.projectName> |
| 49 | + <sonar.projectVersion>${application.version}</sonar.projectVersion> |
| 50 | + <sonar.host.url>${env.SONAR_HOST_URL}</sonar.host.url> |
| 51 | + <sonar.token>${env.SONAR_TOKEN}</sonar.token> |
| 52 | + <sonar.java.binaries>target/classes</sonar.java.binaries> |
| 53 | + <sonar.coverage.exclusions> |
| 54 | + src/main/java/dev/markodojkic/softwaredevelopmentsimulation/SoftwareDevelopmentSimulationApp.java |
| 55 | + </sonar.coverage.exclusions> |
| 56 | + <sonar.dynamic>reuseReports</sonar.dynamic> |
45 | 57 | </properties> |
46 | 58 |
|
47 | 59 | <dependencies> |
48 | 60 | <!-- Spring --> |
49 | 61 | <dependency> |
50 | 62 | <groupId>org.springframework.boot</groupId> |
51 | 63 | <artifactId>spring-boot</artifactId> |
52 | | - <version>${spring-version}</version> |
| 64 | + <version>${spring.version}</version> |
53 | 65 | <scope>compile</scope> |
54 | 66 | </dependency> |
55 | 67 | <dependency> |
56 | 68 | <groupId>org.springframework.boot</groupId> |
57 | 69 | <artifactId>spring-boot-autoconfigure</artifactId> |
58 | | - <version>${spring-version}</version> |
| 70 | + <version>${spring.version}</version> |
59 | 71 | <scope>compile</scope> |
60 | 72 | <optional>true</optional> |
61 | 73 | </dependency> |
62 | 74 | <dependency> |
63 | 75 | <groupId>org.springframework.boot</groupId> |
64 | 76 | <artifactId>spring-boot-starter-thymeleaf</artifactId> |
65 | | - <version>${spring-version}</version> |
| 77 | + <version>${spring.version}</version> |
66 | 78 | <scope>compile</scope> |
67 | 79 | </dependency> |
68 | 80 | <dependency> |
69 | 81 | <groupId>org.springframework.boot</groupId> |
70 | 82 | <artifactId>spring-boot-devtools</artifactId> |
71 | | - <version>${spring-version}</version> |
| 83 | + <version>${spring.version}</version> |
72 | 84 | <optional>true</optional> |
73 | 85 | </dependency> |
74 | 86 | <dependency> |
75 | 87 | <groupId>org.springframework.boot</groupId> |
76 | 88 | <artifactId>spring-boot-starter-web</artifactId> |
77 | | - <version>${spring-version}</version> |
| 89 | + <version>${spring.version}</version> |
78 | 90 | <scope>compile</scope> |
79 | 91 | </dependency> |
80 | 92 | <dependency> |
81 | 93 | <groupId>org.springframework.boot</groupId> |
82 | 94 | <artifactId>spring-boot-test-autoconfigure</artifactId> |
83 | | - <version>${spring-version}</version> |
| 95 | + <version>${spring.version}</version> |
84 | 96 | <scope>test</scope> |
85 | 97 | </dependency> |
86 | 98 |
|
87 | 99 | <!-- Spring integration --> |
88 | 100 | <dependency> |
89 | 101 | <groupId>org.springframework.integration</groupId> |
90 | 102 | <artifactId>spring-integration-core</artifactId> |
91 | | - <version>${spring-integration-version}</version> |
| 103 | + <version>${spring-integration.version}</version> |
92 | 104 | <scope>compile</scope> |
93 | 105 | </dependency> |
94 | 106 | <dependency> |
95 | 107 | <groupId>org.springframework.integration</groupId> |
96 | 108 | <artifactId>spring-integration-stream</artifactId> |
97 | | - <version>${spring-integration-version}</version> |
| 109 | + <version>${spring-integration.version}</version> |
98 | 110 | <scope>compile</scope> |
99 | 111 | </dependency> |
100 | 112 | <dependency> |
101 | 113 | <groupId>org.springframework.integration</groupId> |
102 | 114 | <artifactId>spring-integration-mqtt</artifactId> |
103 | | - <version>${spring-integration-version}</version> |
| 115 | + <version>${spring-integration.version}</version> |
104 | 116 | <scope>compile</scope> |
105 | 117 | </dependency> |
106 | 118 | <dependency> |
107 | 119 | <groupId>org.springframework.integration</groupId> |
108 | 120 | <artifactId>spring-integration-file</artifactId> |
109 | | - <version>${spring-integration-version}</version> |
| 121 | + <version>${spring-integration.version}</version> |
110 | 122 | <scope>compile</scope> |
111 | 123 | </dependency> |
112 | 124 |
|
|
159 | 171 | <dependency> |
160 | 172 | <groupId>com.github.hazendaz.jmockit</groupId> |
161 | 173 | <artifactId>jmockit</artifactId> |
162 | | - <version>${jmockit-version}</version> |
| 174 | + <version>${jmockit.version}</version> |
163 | 175 | <scope>test</scope> |
164 | 176 | </dependency> |
165 | 177 | <dependency> |
166 | 178 | <groupId>org.junit.jupiter</groupId> |
167 | 179 | <artifactId>junit-jupiter</artifactId> |
168 | | - <version>${junit-jupiter-version}</version> |
| 180 | + <version>${junit-jupiter.version}</version> |
169 | 181 | <scope>test</scope> |
170 | 182 | </dependency> |
171 | 183 | <dependency> |
172 | 184 | <groupId>org.junit.jupiter</groupId> |
173 | 185 | <artifactId>junit-jupiter-api</artifactId> |
174 | | - <version>${junit-jupiter-version}</version> |
| 186 | + <version>${junit-jupiter.version}</version> |
175 | 187 | <scope>test</scope> |
176 | 188 | </dependency> |
177 | 189 | <dependency> |
178 | 190 | <groupId>org.junit.jupiter</groupId> |
179 | 191 | <artifactId>junit-jupiter-engine</artifactId> |
180 | | - <version>${junit-jupiter-version}</version> |
| 192 | + <version>${junit-jupiter.version}</version> |
181 | 193 | <scope>test</scope> |
182 | 194 | </dependency> |
183 | 195 | <dependency> |
184 | 196 | <groupId>org.junit.platform</groupId> |
185 | | - <artifactId>junit-platform-suite-api</artifactId> |
| 197 | + <artifactId>junit-platform-suite</artifactId> |
186 | 198 | <version>1.11.3</version> |
187 | 199 | <scope>test</scope> |
188 | 200 | </dependency> |
189 | 201 | <dependency> |
190 | 202 | <groupId>org.mockito</groupId> |
191 | 203 | <artifactId>mockito-junit-jupiter</artifactId> |
192 | | - <version>5.14.2</version> |
| 204 | + <version>${mockito.version}</version> |
193 | 205 | <scope>test</scope> |
194 | 206 | </dependency> |
195 | 207 | <dependency> |
|
230 | 242 | <plugin> |
231 | 243 | <groupId>org.springframework.boot</groupId> |
232 | 244 | <artifactId>spring-boot-maven-plugin</artifactId> |
233 | | - <version>${spring-version}</version> |
| 245 | + <version>${spring.version}</version> |
234 | 246 | <configuration> |
235 | 247 | <mainClass>dev.markodojkic.softwaredevelopmentsimulation.SoftwareDevelopmentSimulationApp</mainClass> |
236 | 248 | <layout>JAR</layout> |
|
252 | 264 | <target>22</target> |
253 | 265 | </configuration> |
254 | 266 | </plugin> |
| 267 | + <plugin> |
| 268 | + <groupId>org.sonarsource.scanner.maven</groupId> |
| 269 | + <artifactId>sonar-maven-plugin</artifactId> |
| 270 | + <version>5.0.0.4389</version> |
| 271 | + </plugin> |
255 | 272 | <plugin> |
256 | 273 | <groupId>org.jacoco</groupId> |
257 | 274 | <artifactId>jacoco-maven-plugin</artifactId> |
258 | | - <version>0.8.12</version> |
| 275 | + <version>${jacoco.version}</version> |
259 | 276 | <executions> |
260 | 277 | <execution> |
261 | 278 | <goals> |
262 | 279 | <goal>prepare-agent</goal> |
263 | | - </goals> |
264 | | - </execution> |
265 | | - <execution> |
266 | | - <id>report</id> |
267 | | - <phase>test</phase> |
268 | | - <goals> |
269 | 280 | <goal>report</goal> |
270 | 281 | </goals> |
| 282 | + <phase>test</phase> |
271 | 283 | <configuration> |
272 | 284 | <excludes> |
273 | 285 | <exclude>dev/markodojkic/softwaredevelopmentsimulation/SoftwareDevelopmentSimulationApp.class</exclude> |
274 | 286 | </excludes> |
| 287 | + <destFile>${project.build.directory}/site/jacoco/jacoco.xml</destFile> |
275 | 288 | </configuration> |
276 | 289 | </execution> |
277 | 290 | </executions> |
|
282 | 295 | <version>3.5.1</version> |
283 | 296 | <configuration> |
284 | 297 | <argLine> |
285 | | - ${argLine} <!-- Defines jacoco javaagent --> |
286 | 298 | -Dspring.profiles.active=test |
287 | 299 | -Xshare:off |
288 | 300 | -XX:+EnableDynamicAgentLoading |
289 | | - -javaagent:${user.home}/.m2/repository/com/github/hazendaz/jmockit/jmockit/${jmockit-version}/jmockit-${jmockit-version}.jar |
| 301 | + -javaagent:${settings.localRepository}/com/github/hazendaz/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar |
| 302 | + -javaagent:${settings.localRepository}/org/mockito/mockito-core/${mockito.version}/mockito-core-${mockito.version}.jar |
| 303 | + -javaagent:${settings.localRepository}/org/jacoco/org.jacoco.agent/${jacoco.version}/org.jacoco.agent-${jacoco.version}-runtime.jar=destfile=target/jacoco.exec |
290 | 304 | </argLine> |
| 305 | + <includes>dev/markodojkic/softwaredevelopmentsimulation/test/SoftwareDevelopmentSimulationAppTestsSuite</includes> |
291 | 306 | </configuration> |
292 | 307 | </plugin> |
293 | 308 | <plugin> |
294 | 309 | <groupId>org.codehaus.mojo</groupId> |
295 | 310 | <artifactId>versions-maven-plugin</artifactId> |
296 | 311 | <version>2.17.1</version> |
| 312 | + <executions> |
| 313 | + <execution> |
| 314 | + <goals> |
| 315 | + <goal>use-latest-versions</goal> |
| 316 | + </goals> |
| 317 | + </execution> |
| 318 | + </executions> |
297 | 319 | </plugin> |
298 | 320 | </plugins> |
299 | 321 | </build> |
|
0 commit comments