|
21 | 21 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
22 | 22 | <compileSource>11</compileSource>
|
23 | 23 | <compileTarget>11</compileTarget>
|
| 24 | + |
| 25 | + <main.basedir>${project.basedir}</main.basedir> |
24 | 26 | </properties>
|
25 | 27 |
|
26 | 28 | <name>highmed-processes</name>
|
|
183 | 185 | <artifactId>maven-clean-plugin</artifactId>
|
184 | 186 | <version>3.1.0</version>
|
185 | 187 | </plugin>
|
| 188 | + <plugin> |
| 189 | + <groupId>net.revelc.code.formatter</groupId> |
| 190 | + <artifactId>formatter-maven-plugin</artifactId> |
| 191 | + <version>2.13.0</version> |
| 192 | + </plugin> |
| 193 | + <plugin> |
| 194 | + <groupId>net.revelc.code</groupId> |
| 195 | + <artifactId>impsort-maven-plugin</artifactId> |
| 196 | + <version>1.5.0</version> |
| 197 | + </plugin> |
186 | 198 | </plugins>
|
187 | 199 | </pluginManagement>
|
188 | 200 |
|
|
204 | 216 | <useLastCommittedRevision>true</useLastCommittedRevision>
|
205 | 217 | </configuration>
|
206 | 218 | </plugin>
|
| 219 | + <plugin> |
| 220 | + <groupId>net.revelc.code.formatter</groupId> |
| 221 | + <artifactId>formatter-maven-plugin</artifactId> |
| 222 | + <configuration> |
| 223 | + <configFile>${main.basedir}/src/main/resources/eclipse-formatter-config.xml</configFile> |
| 224 | + </configuration> |
| 225 | + </plugin> |
| 226 | + <plugin> |
| 227 | + <groupId>net.revelc.code</groupId> |
| 228 | + <artifactId>impsort-maven-plugin</artifactId> |
| 229 | + <configuration> |
| 230 | + <compliance>11</compliance> |
| 231 | + <groups>java.,javax.,org.,com.</groups> |
| 232 | + <staticGroups>java,*</staticGroups> |
| 233 | + </configuration> |
| 234 | + </plugin> |
207 | 235 | </plugins>
|
208 | 236 | </build>
|
209 | 237 |
|
|
231 | 259 | </snapshots>
|
232 | 260 | </repository>
|
233 | 261 | </repositories>
|
| 262 | + |
| 263 | + <profiles> |
| 264 | + <profile> |
| 265 | + <id>format-and-sort</id> |
| 266 | + |
| 267 | + <build> |
| 268 | + <plugins> |
| 269 | + <plugin> |
| 270 | + <groupId>net.revelc.code.formatter</groupId> |
| 271 | + <artifactId>formatter-maven-plugin</artifactId> |
| 272 | + <executions> |
| 273 | + <execution> |
| 274 | + <goals> |
| 275 | + <goal>format</goal> |
| 276 | + </goals> |
| 277 | + </execution> |
| 278 | + </executions> |
| 279 | + </plugin> |
| 280 | + <plugin> |
| 281 | + <groupId>net.revelc.code</groupId> |
| 282 | + <artifactId>impsort-maven-plugin</artifactId> |
| 283 | + <executions> |
| 284 | + <execution> |
| 285 | + <goals> |
| 286 | + <goal>sort</goal> |
| 287 | + </goals> |
| 288 | + </execution> |
| 289 | + </executions> |
| 290 | + </plugin> |
| 291 | + </plugins> |
| 292 | + </build> |
| 293 | + </profile> |
| 294 | + <profile> |
| 295 | + <id>validate-and-check</id> |
| 296 | + <activation> |
| 297 | + <activeByDefault>true</activeByDefault> |
| 298 | + </activation> |
| 299 | + |
| 300 | + <build> |
| 301 | + <plugins> |
| 302 | + <plugin> |
| 303 | + <groupId>net.revelc.code.formatter</groupId> |
| 304 | + <artifactId>formatter-maven-plugin</artifactId> |
| 305 | + <executions> |
| 306 | + <execution> |
| 307 | + <goals> |
| 308 | + <goal>validate</goal> |
| 309 | + </goals> |
| 310 | + </execution> |
| 311 | + </executions> |
| 312 | + </plugin> |
| 313 | + <plugin> |
| 314 | + <groupId>net.revelc.code</groupId> |
| 315 | + <artifactId>impsort-maven-plugin</artifactId> |
| 316 | + <executions> |
| 317 | + <execution> |
| 318 | + <goals> |
| 319 | + <goal>check</goal> |
| 320 | + </goals> |
| 321 | + </execution> |
| 322 | + </executions> |
| 323 | + </plugin> |
| 324 | + </plugins> |
| 325 | + </build> |
| 326 | + </profile> |
| 327 | + </profiles> |
234 | 328 | </project>
|
0 commit comments