|
175 | 175 | --> |
176 | 176 | <scijava.team.roles>founder,lead,developer,debugger,reviewer,support,maintainer</scijava.team.roles> |
177 | 177 |
|
| 178 | + <!-- |
| 179 | + The coding-style property defines a coding style to be used in your project. |
| 180 | + Supported values as of this writing are: imagej, imglib2 and scifio. |
| 181 | + --> |
| 182 | + <scijava.coding-style>imagej</scijava.coding-style> |
| 183 | + |
178 | 184 | <!-- Additional configuration --> |
179 | 185 |
|
180 | 186 | <!-- NB: Avoid platform encoding warning when copying resources. --> |
|
221 | 227 |
|
222 | 228 | <!-- Other Maven plugins --> |
223 | 229 | <dokka-maven-plugin.version>0.9.18</dokka-maven-plugin.version> |
| 230 | + <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version> |
| 231 | + <impsort-maven-plugin.version>1.2.0</impsort-maven-plugin.version> |
224 | 232 | <jacoco-maven-plugin.version>0.8.2</jacoco-maven-plugin.version> |
225 | 233 | <javafx-maven-plugin.version>8.8.3</javafx-maven-plugin.version> |
226 | 234 | <maven-graph-plugin.version>1.39</maven-graph-plugin.version> |
|
231 | 239 | <!-- Plugin dependencies --> |
232 | 240 | <extra-enforcer-rules.version>1.1</extra-enforcer-rules.version> |
233 | 241 | <kotlin.version>1.3.21</kotlin.version> |
| 242 | + <scijava-coding-style.version>1.0.0</scijava-coding-style.version> |
234 | 243 | <velocity.version>1.7</velocity.version> |
235 | 244 |
|
236 | 245 | <!-- Build extensions --> |
|
676 | 685 | </execution> |
677 | 686 | </executions> |
678 | 687 | </plugin> |
| 688 | + |
| 689 | + <!-- Formatter Maven Plugin - https://github.com/revelc/formatter-maven-plugin --> |
| 690 | + <plugin> |
| 691 | + <groupId>net.revelc.code.formatter</groupId> |
| 692 | + <artifactId>formatter-maven-plugin</artifactId> |
| 693 | + <version>${formatter-maven-plugin.version}</version> |
| 694 | + <dependencies> |
| 695 | + <dependency> |
| 696 | + <groupId>org.scijava</groupId> |
| 697 | + <artifactId>scijava-coding-style</artifactId> |
| 698 | + <version>${scijava-coding-style.version}</version> |
| 699 | + </dependency> |
| 700 | + </dependencies> |
| 701 | + <configuration> |
| 702 | + <configFile>eclipse-formatter-settings/${scijava.coding-style}-coding-style.xml</configFile> |
| 703 | + </configuration> |
| 704 | + </plugin> |
| 705 | + |
| 706 | + <!-- ImpSort Maven Plugin - https://github.com/revelc/impsort-maven-plugin --> |
| 707 | + <plugin> |
| 708 | + <groupId>net.revelc.code</groupId> |
| 709 | + <artifactId>impsort-maven-plugin</artifactId> |
| 710 | + <version>${impsort-maven-plugin.version}</version> |
| 711 | + <configuration> |
| 712 | + <groups>java.,javax.,com.,net.,org.</groups> |
| 713 | + <staticGroups>java,*</staticGroups> |
| 714 | + <removeUnused>true</removeUnused> |
| 715 | + </configuration> |
| 716 | + <executions> |
| 717 | + <execution> |
| 718 | + <phase>none</phase> |
| 719 | + </execution> |
| 720 | + </executions> |
| 721 | + </plugin> |
679 | 722 | </plugins> |
680 | 723 | </pluginManagement> |
681 | 724 | <plugins> |
|
860 | 903 | </execution> |
861 | 904 | </executions> |
862 | 905 | </plugin> |
| 906 | + |
| 907 | + <!-- Formatter Maven Plugin - https://github.com/revelc/formatter-maven-plugin --> |
| 908 | + <plugin> |
| 909 | + <groupId>net.revelc.code.formatter</groupId> |
| 910 | + <artifactId>formatter-maven-plugin</artifactId> |
| 911 | + </plugin> |
| 912 | + |
| 913 | + <!-- ImpSort Maven Plugin - https://github.com/revelc/impsort-maven-plugin --> |
| 914 | + <plugin> |
| 915 | + <groupId>net.revelc.code</groupId> |
| 916 | + <artifactId>impsort-maven-plugin</artifactId> |
| 917 | + </plugin> |
863 | 918 | </plugins> |
864 | 919 | <!-- |
865 | 920 | We use wagon-webdav-jackrabbit 1.0 for deploys, since it is |
|
0 commit comments