Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add licence and license plugin

  • Loading branch information...
commit 801c0443612d704030adffbdc70265f494530af6 1 parent f1bd339
@joel1di1 authored
Showing with 35 additions and 0 deletions.
  1. 0  LICENSE
  2. +22 −0 pom.xml
  3. +13 −0 src/etc/header.txt
View
0  LICENSE
No changes.
View
22 pom.xml
@@ -10,6 +10,13 @@
<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>
@@ -18,6 +25,21 @@
<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>
<version>2.3.2</version>
View
13 src/etc/header.txt
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.