Skip to content

Commit

Permalink
Enforce license headers
Browse files Browse the repository at this point in the history
This closes #733
  • Loading branch information
kwin committed Jul 10, 2024
1 parent 573bbb9 commit f489fab
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<name>Access Control Tool</name>
<description>Maven Multimodule project for Access Control Tool.</description>
<url>https://github.com/Netcentric/accesscontroltool</url>
<inceptionYear>2015</inceptionYear>
<organization>
<name>Cognizant Netcentric</name>
<url>https://www.netcentric.biz/</url>
Expand Down Expand Up @@ -440,6 +441,16 @@
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>2.4.0</version>
<configuration>
<licenseName>epl_only_v1</licenseName>
<excludes>test/resources/**,it/**</excludes>
<addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand All @@ -465,6 +476,24 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<executions>
<execution>
<id>check-license-header</id>
<goals>
<goal>check-file-header</goal>
</goals>
<phase>validate</phase>
<configuration>
<failOnMissingHeader>true</failOnMissingHeader>
<failOnNotUptodateHeader>true</failOnNotUptodateHeader>
<ignoreNoFileToScan>true</ignoreNoFileToScan>
</configuration>
</execution>
</executions>
</plugin>
<!-- https://github.com/sonatype/nexus-maven-plugins/tree/master/staging/maven-plugin -->
<plugin>
<groupId>org.sonatype.plugins</groupId>
Expand Down

0 comments on commit f489fab

Please sign in to comment.