Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

Commit

Permalink
Use glassfish-copyright-maven-plugin for copyright/license checking
Browse files Browse the repository at this point in the history
  • Loading branch information
wmhopkins committed Aug 25, 2017
1 parent fdec27d commit 9138b40
Show file tree
Hide file tree
Showing 7 changed files with 779 additions and 139 deletions.
796 changes: 759 additions & 37 deletions LICENSE.txt

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions copyright-exclude
@@ -0,0 +1,4 @@
copyright-exclude
LICENSE.txt
README.md
src/main/javadoc/doc-files/speclicense.html
42 changes: 14 additions & 28 deletions pom.xml
Expand Up @@ -33,6 +33,7 @@
<maven.compiler.target>1.8</maven.compiler.target>

<packages.export>javax.security.enterprise.*</packages.export>
<copyright-plugin.version>1.41</copyright-plugin.version>
</properties>

<licenses>
Expand Down Expand Up @@ -137,41 +138,26 @@
</executions>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>3.0</version>
<groupId>org.glassfish.copyright</groupId>
<artifactId>glassfish-copyright-maven-plugin</artifactId>
<version>${copyright-plugin.version}</version>
<configuration>
<scm>git</scm>
<scmOnly>true</scmOnly>
<excludeFile>
${basedir}/copyright-exclude
</excludeFile>
</configuration>
<executions>
<execution>
<id>check-copyright</id>
<phase>process-test-sources</phase>
<goals>
<goal>copyright</goal>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<header>src/license/header.txt</header>
<properties>
<owner>Oracle</owner>
<currentYear>2017</currentYear>
</properties>
<excludes>
<exclude>**/*.adoc</exclude>
<exclude>**/*.launch</exclude>
<exclude>**/*.sh</exclude>
<exclude>**/pom.xml</exclude>
<exclude>**/README</exclude>
<exclude>**/settings.xml</exclude>
<exclude>src/license/**</exclude>
<exclude>src/test/resources/**</exclude>
<exclude>src/main/resources/**</exclude>
<exclude>*.txt</exclude>
</excludes>
<headerDefinitions>
<headerDefinition>src/license/headers.xml</headerDefinition>
</headerDefinitions>
<mapping>
<java>JAVA_STYLE</java>
</mapping>
</configuration>
</plugin>
<plugin>
<groupId>org.glassfish.build</groupId>
Expand Down
22 changes: 0 additions & 22 deletions src/license/README.md

This file was deleted.

37 changes: 0 additions & 37 deletions src/license/header.txt

This file was deleted.

15 changes: 0 additions & 15 deletions src/license/headers.xml

This file was deleted.

2 changes: 2 additions & 0 deletions src/main/javadoc/doc-files/speclicense.html
@@ -0,0 +1,2 @@
<html>
</html>

0 comments on commit 9138b40

Please sign in to comment.