Skip to content

Commit d8bae60

Browse files
author
jython234
committed
Add license header maven plugin.
1 parent bb8d3d2 commit d8bae60

32 files changed

Lines changed: 621 additions & 592 deletions

license-definitions.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<!--
3+
JRakLib is not affiliated with Jenkins Software LLC or RakNet.
4+
This software is a port of RakLib https://github.com/PocketMine/RakLib.
5+
6+
This file is part of JRakLib.
7+
8+
JRakLib is free software: you can redistribute it and/or modify
9+
it under the terms of the GNU Lesser General Public License as published by
10+
the Free Software Foundation, either version 3 of the License, or
11+
(at your option) any later version.
12+
13+
JRakLib is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU Lesser General Public License for more details.
17+
18+
You should have received a copy of the GNU Lesser General Public License
19+
along with JRakLib. If not, see <http://www.gnu.org/licenses/>.
20+
-->
21+
<additionalHeaders>
22+
<javadoc_style>
23+
<firstLine>/**EOL * JRakLib is not affiliated with Jenkins Software LLC or RakNet.EOL * This software is a port of RakLib https://github.com/PocketMine/RakLib.EOL</firstLine>
24+
<beforeEachLine> * </beforeEachLine>
25+
<endLine> */</endLine>
26+
<!--<afterEachLine></afterEachLine>-->
27+
<!--skipLine></skipLine-->
28+
<firstLineDetectionPattern>(\s|\t)*/\*.*$</firstLineDetectionPattern>
29+
<lastLineDetectionPattern>.*\*/(\s|\t)*$</lastLineDetectionPattern>
30+
<allowBlankLines>false</allowBlankLines>
31+
<isMultiline>true</isMultiline>
32+
<padLines>false</padLines>
33+
</javadoc_style>
34+
<xml_style>
35+
<firstLine><![CDATA[<!--EOL JRakLib is not affiliated with Jenkins Software LLC or RakNet.EOL This software is a port of RakLib https://github.com/PocketMine/RakLib.EOL]]></firstLine>
36+
<beforeEachLine> </beforeEachLine>
37+
<endLine><![CDATA[-->]]></endLine>
38+
<!--<afterEachLine></afterEachLine>-->
39+
<skipLine><![CDATA[^<\?xml.*>$]]></skipLine>
40+
<firstLineDetectionPattern><![CDATA[(\s|\t)*<!--.*$]]></firstLineDetectionPattern>
41+
<lastLineDetectionPattern><![CDATA[.*-->(\s|\t)*$]]></lastLineDetectionPattern>
42+
<allowBlankLines>false</allowBlankLines>
43+
<isMultiline>true</isMultiline>
44+
<padLines>false</padLines>
45+
</xml_style>
46+
</additionalHeaders>

pom.xml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
JRakLib is not affiliated with Jenkins Software LLC or RakNet.
4+
This software is a port of RakLib https://github.com/PocketMine/RakLib.
5+
6+
This file is part of JRakLib.
7+
8+
JRakLib is free software: you can redistribute it and/or modify
9+
it under the terms of the GNU Lesser General Public License as published by
10+
the Free Software Foundation, either version 3 of the License, or
11+
(at your option) any later version.
12+
13+
JRakLib is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU Lesser General Public License for more details.
17+
18+
You should have received a copy of the GNU Lesser General Public License
19+
along with JRakLib. If not, see <http://www.gnu.org/licenses/>.
20+
-->
221
<project xmlns="http://maven.apache.org/POM/4.0.0"
322
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
423
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
@@ -25,6 +44,30 @@
2544
<target>1.8</target>
2645
</configuration>
2746
</plugin>
47+
<plugin>
48+
<groupId>com.mycila</groupId>
49+
<artifactId>license-maven-plugin</artifactId>
50+
<version>2.11</version>
51+
<configuration>
52+
<header>com/mycila/maven/plugin/license/templates/LGPL-3.txt</header>
53+
<headerDefinitions>
54+
<headerDefinition>license-definitions.xml</headerDefinition>
55+
</headerDefinitions>
56+
<excludes>
57+
<exclude>**/README</exclude>
58+
<exclude>**/LICENSE</exclude>
59+
<exclude>src/test/resources/**</exclude>
60+
<exclude>src/main/resources/**</exclude>
61+
</excludes>
62+
</configuration>
63+
<executions>
64+
<execution>
65+
<goals>
66+
<goal>check</goal>
67+
</goals>
68+
</execution>
69+
</executions>
70+
</plugin>
2871
</plugins>
2972
</build>
3073

src/main/java/net/beaconpe/jraklib/Binary.java

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1-
/*
2-
JRakLib networking library.
3-
This software is not affiliated with RakNet or Jenkins Software LLC.
4-
This software is a port of PocketMine/RakLib <https://github.com/PocketMine/RakLib>.
5-
All credit goes to the PocketMine Project (http://pocketmine.net)
6-
7-
Copyright (C) 2015 BlockServerProject & PocketMine team
8-
9-
This program is free software: you can redistribute it and/or modify
10-
it under the terms of the GNU General Public License as published by
11-
the Free Software Foundation, either version 3 of the License, or
12-
(at your option) any later version.
13-
14-
This program is distributed in the hope that it will be useful,
15-
but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17-
GNU General Public License for more details.
18-
19-
You should have received a copy of the GNU General Public License
20-
along with this program. If not, see <http://www.gnu.org/licenses/>.
1+
/**
2+
* JRakLib is not affiliated with Jenkins Software LLC or RakNet.
3+
* This software is a port of RakLib https://github.com/PocketMine/RakLib.
4+
5+
* This file is part of JRakLib.
6+
*
7+
* JRakLib is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* JRakLib is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Lesser General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Lesser General Public License
18+
* along with JRakLib. If not, see <http://www.gnu.org/licenses/>.
2119
*/
2220
package net.beaconpe.jraklib;
2321

@@ -100,7 +98,7 @@ public static int readByte(byte b, boolean signed){
10098
* @return The byte.
10199
*/
102100
public static byte writeByte(byte b){
103-
return b;
101+
return b;
104102
}
105103

106104
/**
@@ -243,4 +241,4 @@ public static byte[][] splitbytes(byte[] bytes, int chunkSize){
243241

244242
return splits;
245243
}
246-
}
244+
}

src/main/java/net/beaconpe/jraklib/JRakLib.java

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1-
/*
2-
JRakLib networking library.
3-
This software is not affiliated with RakNet or Jenkins Software LLC.
4-
This software is a port of PocketMine/RakLib <https://github.com/PocketMine/RakLib>.
5-
All credit goes to the PocketMine Project (http://pocketmine.net)
6-
7-
Copyright (C) 2015 BlockServerProject & PocketMine team
8-
9-
This program is free software: you can redistribute it and/or modify
10-
it under the terms of the GNU General Public License as published by
11-
the Free Software Foundation, either version 3 of the License, or
12-
(at your option) any later version.
13-
14-
This program is distributed in the hope that it will be useful,
15-
but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17-
GNU General Public License for more details.
1+
/**
2+
* JRakLib is not affiliated with Jenkins Software LLC or RakNet.
3+
* This software is a port of RakLib https://github.com/PocketMine/RakLib.
184
19-
You should have received a copy of the GNU General Public License
20-
along with this program. If not, see <http://www.gnu.org/licenses/>.
5+
* This file is part of JRakLib.
6+
*
7+
* JRakLib is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* JRakLib is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Lesser General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Lesser General Public License
18+
* along with JRakLib. If not, see <http://www.gnu.org/licenses/>.
2119
*/
2220
package net.beaconpe.jraklib;
2321

src/main/java/net/beaconpe/jraklib/Logger.java

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1-
/*
2-
JRakLib networking library.
3-
This software is not affiliated with RakNet or Jenkins Software LLC.
4-
This software is a port of PocketMine/RakLib <https://github.com/PocketMine/RakLib>.
5-
All credit goes to the PocketMine Project (http://pocketmine.net)
6-
7-
Copyright (C) 2015 BlockServerProject & PocketMine team
8-
9-
This program is free software: you can redistribute it and/or modify
10-
it under the terms of the GNU General Public License as published by
11-
the Free Software Foundation, either version 3 of the License, or
12-
(at your option) any later version.
13-
14-
This program is distributed in the hope that it will be useful,
15-
but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17-
GNU General Public License for more details.
1+
/**
2+
* JRakLib is not affiliated with Jenkins Software LLC or RakNet.
3+
* This software is a port of RakLib https://github.com/PocketMine/RakLib.
184
19-
You should have received a copy of the GNU General Public License
20-
along with this program. If not, see <http://www.gnu.org/licenses/>.
5+
* This file is part of JRakLib.
6+
*
7+
* JRakLib is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* JRakLib is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Lesser General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Lesser General Public License
18+
* along with JRakLib. If not, see <http://www.gnu.org/licenses/>.
2119
*/
2220
package net.beaconpe.jraklib;
2321

src/main/java/net/beaconpe/jraklib/protocol/ACK.java

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1-
/*
2-
JRakLib networking library.
3-
This software is not affiliated with RakNet or Jenkins Software LLC.
4-
This software is a port of PocketMine/RakLib <https://github.com/PocketMine/RakLib>.
5-
All credit goes to the PocketMine Project (http://pocketmine.net)
6-
7-
Copyright (C) 2015 BlockServerProject & PocketMine team
8-
9-
This program is free software: you can redistribute it and/or modify
10-
it under the terms of the GNU General Public License as published by
11-
the Free Software Foundation, either version 3 of the License, or
12-
(at your option) any later version.
13-
14-
This program is distributed in the hope that it will be useful,
15-
but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17-
GNU General Public License for more details.
1+
/**
2+
* JRakLib is not affiliated with Jenkins Software LLC or RakNet.
3+
* This software is a port of RakLib https://github.com/PocketMine/RakLib.
184
19-
You should have received a copy of the GNU General Public License
20-
along with this program. If not, see <http://www.gnu.org/licenses/>.
5+
* This file is part of JRakLib.
6+
*
7+
* JRakLib is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* JRakLib is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Lesser General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Lesser General Public License
18+
* along with JRakLib. If not, see <http://www.gnu.org/licenses/>.
2119
*/
2220
package net.beaconpe.jraklib.protocol;
2321

src/main/java/net/beaconpe/jraklib/protocol/ADVERTISE_SYSTEM.java

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1-
/*
2-
JRakLib networking library.
3-
This software is not affiliated with RakNet or Jenkins Software LLC.
4-
This software is a port of PocketMine/RakLib <https://github.com/PocketMine/RakLib>.
5-
All credit goes to the PocketMine Project (http://pocketmine.net)
6-
7-
Copyright (C) 2015 BlockServerProject & PocketMine team
8-
9-
This program is free software: you can redistribute it and/or modify
10-
it under the terms of the GNU General Public License as published by
11-
the Free Software Foundation, either version 3 of the License, or
12-
(at your option) any later version.
13-
14-
This program is distributed in the hope that it will be useful,
15-
but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17-
GNU General Public License for more details.
1+
/**
2+
* JRakLib is not affiliated with Jenkins Software LLC or RakNet.
3+
* This software is a port of RakLib https://github.com/PocketMine/RakLib.
184
19-
You should have received a copy of the GNU General Public License
20-
along with this program. If not, see <http://www.gnu.org/licenses/>.
5+
* This file is part of JRakLib.
6+
*
7+
* JRakLib is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* JRakLib is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Lesser General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Lesser General Public License
18+
* along with JRakLib. If not, see <http://www.gnu.org/licenses/>.
2119
*/
2220
package net.beaconpe.jraklib.protocol;
2321

src/main/java/net/beaconpe/jraklib/protocol/AcknowledgePacket.java

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1-
/*
2-
JRakLib networking library.
3-
This software is not affiliated with RakNet or Jenkins Software LLC.
4-
This software is a port of PocketMine/RakLib <https://github.com/PocketMine/RakLib>.
5-
All credit goes to the PocketMine Project (http://pocketmine.net)
6-
7-
Copyright (C) 2015 BlockServerProject & PocketMine team
8-
9-
This program is free software: you can redistribute it and/or modify
10-
it under the terms of the GNU General Public License as published by
11-
the Free Software Foundation, either version 3 of the License, or
12-
(at your option) any later version.
13-
14-
This program is distributed in the hope that it will be useful,
15-
but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17-
GNU General Public License for more details.
1+
/**
2+
* JRakLib is not affiliated with Jenkins Software LLC or RakNet.
3+
* This software is a port of RakLib https://github.com/PocketMine/RakLib.
184
19-
You should have received a copy of the GNU General Public License
20-
along with this program. If not, see <http://www.gnu.org/licenses/>.
5+
* This file is part of JRakLib.
6+
*
7+
* JRakLib is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* JRakLib is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Lesser General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Lesser General Public License
18+
* along with JRakLib. If not, see <http://www.gnu.org/licenses/>.
2119
*/
2220
package net.beaconpe.jraklib.protocol;
2321

0 commit comments

Comments
 (0)