|
10 | 10 | <revision>1.1.2</revision> |
11 | 11 | <maven.compiler.source>1.8</maven.compiler.source> |
12 | 12 | <maven.compiler.target>1.8</maven.compiler.target> |
| 13 | + <plugin.flatten.version>1.2.2</plugin.flatten.version> |
| 14 | + <plugin.javadoc.version>3.2.0</plugin.javadoc.version> |
| 15 | + <plugin.license.version>4.1</plugin.license.version> |
| 16 | + <plugin.projectinfo.version>3.1.2</plugin.projectinfo.version> |
13 | 17 | </properties> |
14 | 18 | <dependencies> |
| 19 | + <dependency> |
| 20 | + <groupId>com.mycila</groupId> |
| 21 | + <artifactId>license-maven-plugin</artifactId> |
| 22 | + <version>${plugin.license.version}</version> |
| 23 | + </dependency> |
15 | 24 | </dependencies> |
16 | 25 | <build> |
17 | 26 | <plugins> |
18 | | - <plugin> |
| 27 | + <plugin> |
19 | 28 | <groupId>org.apache.maven.plugins</groupId> |
20 | 29 | <artifactId>maven-project-info-reports-plugin</artifactId> |
21 | | - <version>3.1.2</version> |
| 30 | + <version>${plugin.projectinfo.version}</version> |
22 | 31 | </plugin> |
23 | | - <!-- This plugin replaces the revision variable in the version by the actual variable value. Only required if submodules exist --> |
24 | 32 | <plugin> |
25 | | - <!-- Plugin to activate the generation of javadocs --> |
26 | 33 | <groupId>org.apache.maven.plugins</groupId> |
27 | 34 | <artifactId>maven-javadoc-plugin</artifactId> |
28 | | - <version>3.2.0</version> |
| 35 | + <version>${plugin.javadoc.version}</version> |
29 | 36 | <configuration> |
30 | | - <source>8</source> |
31 | | - <detectJavaApiLink>false</detectJavaApiLink> |
| 37 | + <source>8</source> |
| 38 | + <detectJavaApiLink>false</detectJavaApiLink> |
32 | 39 | </configuration> |
33 | 40 | <executions> |
34 | 41 | <execution> |
|
42 | 49 | <plugin> |
43 | 50 | <groupId>org.codehaus.mojo</groupId> |
44 | 51 | <artifactId>flatten-maven-plugin</artifactId> |
45 | | - <version>1.2.2</version> |
| 52 | + <version>${plugin.flatten.version}</version> |
46 | 53 | <configuration> |
47 | 54 | <updatePomFile>true</updatePomFile> |
48 | 55 | </configuration> |
|
63 | 70 | </execution> |
64 | 71 | </executions> |
65 | 72 | </plugin> |
| 73 | + <plugin> |
| 74 | + <groupId>com.mycila</groupId> |
| 75 | + <artifactId>license-maven-plugin</artifactId> |
| 76 | + <version>${plugin.license.version}</version> |
| 77 | + <configuration> |
| 78 | + <licenseSets> |
| 79 | + <licenseSet> |
| 80 | + <header>license-header.txt</header> |
| 81 | + <includes> |
| 82 | + <include>**/*.java</include> |
| 83 | + </includes> |
| 84 | + <excludes> |
| 85 | + <exclude>**/README</exclude> |
| 86 | + <exclude>src/test/resources/**</exclude> |
| 87 | + <exclude>src/main/resources/**</exclude> |
| 88 | + </excludes> |
| 89 | + </licenseSet> |
| 90 | + </licenseSets> |
| 91 | + </configuration> |
| 92 | + <executions> |
| 93 | + <execution> |
| 94 | + <goals> |
| 95 | + <goal>check</goal> |
| 96 | + </goals> |
| 97 | + </execution> |
| 98 | + </executions> |
| 99 | + </plugin> |
66 | 100 | </plugins> |
67 | 101 | </build> |
68 | 102 | </project> |
0 commit comments