Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit ac8f725

Browse files
committed
added license plugin
1 parent 5958356 commit ac8f725

1 file changed

Lines changed: 42 additions & 8 deletions

File tree

pom.xml

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,32 @@
1010
<revision>1.1.2</revision>
1111
<maven.compiler.source>1.8</maven.compiler.source>
1212
<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>
1317
</properties>
1418
<dependencies>
19+
<dependency>
20+
<groupId>com.mycila</groupId>
21+
<artifactId>license-maven-plugin</artifactId>
22+
<version>${plugin.license.version}</version>
23+
</dependency>
1524
</dependencies>
1625
<build>
1726
<plugins>
18-
<plugin>
27+
<plugin>
1928
<groupId>org.apache.maven.plugins</groupId>
2029
<artifactId>maven-project-info-reports-plugin</artifactId>
21-
<version>3.1.2</version>
30+
<version>${plugin.projectinfo.version}</version>
2231
</plugin>
23-
<!-- This plugin replaces the revision variable in the version by the actual variable value. Only required if submodules exist -->
2432
<plugin>
25-
<!-- Plugin to activate the generation of javadocs -->
2633
<groupId>org.apache.maven.plugins</groupId>
2734
<artifactId>maven-javadoc-plugin</artifactId>
28-
<version>3.2.0</version>
35+
<version>${plugin.javadoc.version}</version>
2936
<configuration>
30-
<source>8</source>
31-
<detectJavaApiLink>false</detectJavaApiLink>
37+
<source>8</source>
38+
<detectJavaApiLink>false</detectJavaApiLink>
3239
</configuration>
3340
<executions>
3441
<execution>
@@ -42,7 +49,7 @@
4249
<plugin>
4350
<groupId>org.codehaus.mojo</groupId>
4451
<artifactId>flatten-maven-plugin</artifactId>
45-
<version>1.2.2</version>
52+
<version>${plugin.flatten.version}</version>
4653
<configuration>
4754
<updatePomFile>true</updatePomFile>
4855
</configuration>
@@ -63,6 +70,33 @@
6370
</execution>
6471
</executions>
6572
</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>
66100
</plugins>
67101
</build>
68102
</project>

0 commit comments

Comments
 (0)