Skip to content

Commit d1b900e

Browse files
add license-maven-plugin and licence-header-template
1 parent 17c5c43 commit d1b900e

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

licence-header-template.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License
2+
3+
Copyright (c) ${currentYear}, Mahmoud Ben Hassine ([email protected])
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

pom.xml

+25
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,31 @@
286286
</plugin>
287287
</plugins>
288288
</pluginManagement>
289+
<plugins>
290+
<plugin>
291+
<groupId>com.mycila</groupId>
292+
<artifactId>license-maven-plugin</artifactId>
293+
<version>2.11</version>
294+
<configuration>
295+
<header>licence-header-template.txt</header>
296+
<properties>
297+
<currentYear>2016</currentYear>
298+
</properties>
299+
<strictCheck>true</strictCheck>
300+
<includes>
301+
<include>src/**/*.java</include>
302+
</includes>
303+
</configuration>
304+
<executions>
305+
<execution>
306+
<phase>validate</phase>
307+
<goals>
308+
<goal>format</goal>
309+
</goals>
310+
</execution>
311+
</executions>
312+
</plugin>
313+
</plugins>
289314
</build>
290315

291316
</project>

0 commit comments

Comments
 (0)