Skip to content

Commit

Permalink
Added license header checking plugin to build.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxzin committed Jan 30, 2011
1 parent b99b2e5 commit 8d49467
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
24 changes: 23 additions & 1 deletion pom.xml
Expand Up @@ -73,7 +73,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<build>
<plugins>
<plugin>
Expand All @@ -85,6 +85,28 @@
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>com.mycila.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<version>1.9.0</version>
<configuration>
<header>${basedir}/src/license/header.txt</header>
<includes>
<include>src/**</include>
</includes>
<properties>
<year>${project.inceptionYear}</year>
<email>brian@jaxzin.com</email>
</properties>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
13 changes: 13 additions & 0 deletions src/license/header.txt
@@ -0,0 +1,13 @@
Copyright (C) ${year} ${user.name} <${email}>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

0 comments on commit 8d49467

Please sign in to comment.