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

Commit 9138b40

Browse files
committed
Use glassfish-copyright-maven-plugin for copyright/license checking
1 parent fdec27d commit 9138b40

7 files changed

Lines changed: 779 additions & 139 deletions

File tree

LICENSE.txt

Lines changed: 759 additions & 37 deletions
Large diffs are not rendered by default.

copyright-exclude

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
copyright-exclude
2+
LICENSE.txt
3+
README.md
4+
src/main/javadoc/doc-files/speclicense.html

pom.xml

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<maven.compiler.target>1.8</maven.compiler.target>
3434

3535
<packages.export>javax.security.enterprise.*</packages.export>
36+
<copyright-plugin.version>1.41</copyright-plugin.version>
3637
</properties>
3738

3839
<licenses>
@@ -137,41 +138,26 @@
137138
</executions>
138139
</plugin>
139140
<plugin>
140-
<groupId>com.mycila</groupId>
141-
<artifactId>license-maven-plugin</artifactId>
142-
<version>3.0</version>
141+
<groupId>org.glassfish.copyright</groupId>
142+
<artifactId>glassfish-copyright-maven-plugin</artifactId>
143+
<version>${copyright-plugin.version}</version>
144+
<configuration>
145+
<scm>git</scm>
146+
<scmOnly>true</scmOnly>
147+
<excludeFile>
148+
${basedir}/copyright-exclude
149+
</excludeFile>
150+
</configuration>
143151
<executions>
144152
<execution>
153+
<id>check-copyright</id>
154+
<phase>process-test-sources</phase>
145155
<goals>
156+
<goal>copyright</goal>
146157
<goal>check</goal>
147158
</goals>
148159
</execution>
149160
</executions>
150-
<configuration>
151-
<header>src/license/header.txt</header>
152-
<properties>
153-
<owner>Oracle</owner>
154-
<currentYear>2017</currentYear>
155-
</properties>
156-
<excludes>
157-
<exclude>**/*.adoc</exclude>
158-
<exclude>**/*.launch</exclude>
159-
<exclude>**/*.sh</exclude>
160-
<exclude>**/pom.xml</exclude>
161-
<exclude>**/README</exclude>
162-
<exclude>**/settings.xml</exclude>
163-
<exclude>src/license/**</exclude>
164-
<exclude>src/test/resources/**</exclude>
165-
<exclude>src/main/resources/**</exclude>
166-
<exclude>*.txt</exclude>
167-
</excludes>
168-
<headerDefinitions>
169-
<headerDefinition>src/license/headers.xml</headerDefinition>
170-
</headerDefinitions>
171-
<mapping>
172-
<java>JAVA_STYLE</java>
173-
</mapping>
174-
</configuration>
175161
</plugin>
176162
<plugin>
177163
<groupId>org.glassfish.build</groupId>

src/license/README.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/license/header.txt

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/license/headers.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<html>
2+
</html>

0 commit comments

Comments
 (0)