Skip to content

Commit

Permalink
add licence and license plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
joel1di1 committed Oct 25, 2011
1 parent f1bd339 commit 801c044
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
Empty file added LICENSE
Empty file.
22 changes: 22 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,35 @@
<packaging>jar</packaging>
<name>Mock Http Server</name>
<description>Mock HTTP Server for Java Testing</description>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<url>https://github.com/jharlap/mock-http-server</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.mycila.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<version>1.10.b1</version>
<configuration>
<header>src/etc/header.txt</header>
<includes>
<!-- Only copyright the java and pom.xml -->
<include>src/main/java/**</include>
<include>src/test/java/**</include>
<include>pom.xml</include>
<include>LICENCE</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down
13 changes: 13 additions & 0 deletions src/etc/header.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright ${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 801c044

Please sign in to comment.