Skip to content

Commit 9893e89

Browse files
committed
Migrate to new license plugin
1 parent be61700 commit 9893e89

15 files changed

Lines changed: 152 additions & 141 deletions

pom.xml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright © 2016-2025 The LmdbJava Open Source Project
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
18+
-->
219
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
320
<modelVersion>4.0.0</modelVersion>
421
<groupId>org.lmdbjava</groupId>
@@ -19,6 +36,7 @@
1936
<jnr-posix.version>3.1.21</jnr-posix.version>
2037
<leveldb-api.version>0.7</leveldb-api.version>
2138
<leveldbjni.version>1.8</leveldbjni.version>
39+
<license-maven-plugin.version>4.6</license-maven-plugin.version>
2240
<lmdbjava.version>0.9.1</lmdbjava.version>
2341
<lmdbjni.version>0.4.7</lmdbjni.version>
2442
<lwjgl.version>3.3.6</lwjgl.version>
@@ -186,6 +204,43 @@
186204
</execution>
187205
</executions>
188206
</plugin>
207+
<plugin>
208+
<groupId>com.mycila</groupId>
209+
<artifactId>license-maven-plugin</artifactId>
210+
<version>${license-maven-plugin.version}</version>
211+
<configuration>
212+
<licenseSets>
213+
<licenseSet>
214+
<header>src/misc/license-template.txt</header>
215+
<excludes>
216+
<exclude>LICENSE.txt</exclude>
217+
<exclude>**/*.md</exclude>
218+
<exclude>results/**</exclude>
219+
</excludes>
220+
</licenseSet>
221+
</licenseSets>
222+
<useDefaultExcludes>true</useDefaultExcludes>
223+
</configuration>
224+
<dependencies>
225+
<dependency>
226+
<groupId>com.mycila</groupId>
227+
<artifactId>license-maven-plugin-git</artifactId>
228+
<version>${license-maven-plugin.version}</version>
229+
</dependency>
230+
</dependencies>
231+
<executions>
232+
<execution>
233+
<id>apply-license</id>
234+
<goals>
235+
<goal>format</goal>
236+
</goals>
237+
<phase>package</phase>
238+
<configuration>
239+
<indentSize>2</indentSize>
240+
</configuration>
241+
</execution>
242+
</executions>
243+
</plugin>
189244
<plugin>
190245
<groupId>org.apache.maven.plugins</groupId>
191246
<artifactId>maven-compiler-plugin</artifactId>
@@ -234,6 +289,10 @@
234289
<groupId>com.github.ekryd.sortpom</groupId>
235290
<artifactId>sortpom-maven-plugin</artifactId>
236291
</plugin>
292+
<plugin>
293+
<groupId>com.mycila</groupId>
294+
<artifactId>license-maven-plugin</artifactId>
295+
</plugin>
237296
<plugin>
238297
<groupId>org.apache.maven.plugins</groupId>
239298
<artifactId>maven-compiler-plugin</artifactId>
@@ -289,6 +348,10 @@
289348
</build>
290349
<url>https://github.com/${github.org}/${github.repo}</url>
291350
<inceptionYear>2016</inceptionYear>
351+
<organization>
352+
<name>The LmdbJava Open Source Project</name>
353+
<url>https://github.com/lmdbjava</url>
354+
</organization>
292355
<licenses>
293356
<license>
294357
<name>The Apache Software License, Version 2.0</name>

src/main/java/org/lmdbjava/bench/Chronicle.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
/*-
2-
* #%L
3-
* LmdbJava Benchmarks
4-
* %%
5-
* Copyright (C) 2016 - 2025 The LmdbJava Open Source Project
6-
* %%
1+
/*
2+
* Copyright © 2016-2025 The LmdbJava Open Source Project
3+
*
74
* Licensed under the Apache License, Version 2.0 (the "License");
85
* you may not use this file except in compliance with the License.
96
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
1310
* Unless required by applicable law or agreed to in writing, software
1411
* distributed under the License is distributed on an "AS IS" BASIS,
1512
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1613
* See the License for the specific language governing permissions and
1714
* limitations under the License.
18-
* #L%
1915
*/
20-
2116
package org.lmdbjava.bench;
2217

2318
import static java.nio.ByteOrder.LITTLE_ENDIAN;

src/main/java/org/lmdbjava/bench/Common.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
/*-
2-
* #%L
3-
* LmdbJava Benchmarks
4-
* %%
5-
* Copyright (C) 2016 - 2025 The LmdbJava Open Source Project
6-
* %%
1+
/*
2+
* Copyright © 2016-2025 The LmdbJava Open Source Project
3+
*
74
* Licensed under the Apache License, Version 2.0 (the "License");
85
* you may not use this file except in compliance with the License.
96
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
1310
* Unless required by applicable law or agreed to in writing, software
1411
* distributed under the License is distributed on an "AS IS" BASIS,
1512
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1613
* See the License for the specific language governing permissions and
1714
* limitations under the License.
18-
* #L%
1915
*/
20-
2116
package org.lmdbjava.bench;
2217

2318
import static java.lang.Integer.BYTES;

src/main/java/org/lmdbjava/bench/CommonLmdbJava.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
/*-
2-
* #%L
3-
* LmdbJava Benchmarks
4-
* %%
5-
* Copyright (C) 2016 - 2025 The LmdbJava Open Source Project
6-
* %%
1+
/*
2+
* Copyright © 2016-2025 The LmdbJava Open Source Project
3+
*
74
* Licensed under the Apache License, Version 2.0 (the "License");
85
* you may not use this file except in compliance with the License.
96
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
1310
* Unless required by applicable law or agreed to in writing, software
1411
* distributed under the License is distributed on an "AS IS" BASIS,
1512
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1613
* See the License for the specific language governing permissions and
1714
* limitations under the License.
18-
* #L%
1915
*/
20-
2116
package org.lmdbjava.bench;
2217

2318
import static java.lang.Boolean.TRUE;

src/main/java/org/lmdbjava/bench/LevelDb.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
/*-
2-
* #%L
3-
* LmdbJava Benchmarks
4-
* %%
5-
* Copyright (C) 2016 - 2025 The LmdbJava Open Source Project
6-
* %%
1+
/*
2+
* Copyright © 2016-2025 The LmdbJava Open Source Project
3+
*
74
* Licensed under the Apache License, Version 2.0 (the "License");
85
* you may not use this file except in compliance with the License.
96
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
1310
* Unless required by applicable law or agreed to in writing, software
1411
* distributed under the License is distributed on an "AS IS" BASIS,
1512
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1613
* See the License for the specific language governing permissions and
1714
* limitations under the License.
18-
* #L%
1915
*/
20-
2116
package org.lmdbjava.bench;
2217

2318
import static java.nio.ByteOrder.LITTLE_ENDIAN;

src/main/java/org/lmdbjava/bench/LmdbJavaAgrona.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
/*-
2-
* #%L
3-
* LmdbJava Benchmarks
4-
* %%
5-
* Copyright (C) 2016 - 2025 The LmdbJava Open Source Project
6-
* %%
1+
/*
2+
* Copyright © 2016-2025 The LmdbJava Open Source Project
3+
*
74
* Licensed under the Apache License, Version 2.0 (the "License");
85
* you may not use this file except in compliance with the License.
96
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
1310
* Unless required by applicable law or agreed to in writing, software
1411
* distributed under the License is distributed on an "AS IS" BASIS,
1512
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1613
* See the License for the specific language governing permissions and
1714
* limitations under the License.
18-
* #L%
1915
*/
20-
2116
package org.lmdbjava.bench;
2217

2318
import static java.lang.Boolean.TRUE;

src/main/java/org/lmdbjava/bench/LmdbJavaByteBuffer.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
/*-
2-
* #%L
3-
* LmdbJava Benchmarks
4-
* %%
5-
* Copyright (C) 2016 - 2025 The LmdbJava Open Source Project
6-
* %%
1+
/*
2+
* Copyright © 2016-2025 The LmdbJava Open Source Project
3+
*
74
* Licensed under the Apache License, Version 2.0 (the "License");
85
* you may not use this file except in compliance with the License.
96
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
1310
* Unless required by applicable law or agreed to in writing, software
1411
* distributed under the License is distributed on an "AS IS" BASIS,
1512
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1613
* See the License for the specific language governing permissions and
1714
* limitations under the License.
18-
* #L%
1915
*/
20-
2116
package org.lmdbjava.bench;
2217

2318
import static java.nio.ByteBuffer.allocateDirect;

src/main/java/org/lmdbjava/bench/LmdbJni.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
/*-
2-
* #%L
3-
* LmdbJava Benchmarks
4-
* %%
5-
* Copyright (C) 2016 - 2025 The LmdbJava Open Source Project
6-
* %%
1+
/*
2+
* Copyright © 2016-2025 The LmdbJava Open Source Project
3+
*
74
* Licensed under the Apache License, Version 2.0 (the "License");
85
* you may not use this file except in compliance with the License.
96
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
1310
* Unless required by applicable law or agreed to in writing, software
1411
* distributed under the License is distributed on an "AS IS" BASIS,
1512
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1613
* See the License for the specific language governing permissions and
1714
* limitations under the License.
18-
* #L%
1915
*/
20-
2116
package org.lmdbjava.bench;
2217

2318
import static java.lang.Boolean.TRUE;

src/main/java/org/lmdbjava/bench/LmdbLwjgl.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
/*-
2-
* #%L
3-
* LmdbJava Benchmarks
4-
* %%
5-
* Copyright (C) 2016 - 2025 The LmdbJava Open Source Project
6-
* %%
1+
/*
2+
* Copyright © 2016-2025 The LmdbJava Open Source Project
3+
*
74
* Licensed under the Apache License, Version 2.0 (the "License");
85
* you may not use this file except in compliance with the License.
96
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
1310
* Unless required by applicable law or agreed to in writing, software
1411
* distributed under the License is distributed on an "AS IS" BASIS,
1512
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1613
* See the License for the specific language governing permissions and
1714
* limitations under the License.
18-
* #L%
1915
*/
20-
2116
package org.lmdbjava.bench;
2217

2318
import static java.util.concurrent.TimeUnit.MILLISECONDS;

src/main/java/org/lmdbjava/bench/MapDb.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
/*-
2-
* #%L
3-
* LmdbJava Benchmarks
4-
* %%
5-
* Copyright (C) 2016 - 2025 The LmdbJava Open Source Project
6-
* %%
1+
/*
2+
* Copyright © 2016-2025 The LmdbJava Open Source Project
3+
*
74
* Licensed under the Apache License, Version 2.0 (the "License");
85
* you may not use this file except in compliance with the License.
96
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
1310
* Unless required by applicable law or agreed to in writing, software
1411
* distributed under the License is distributed on an "AS IS" BASIS,
1512
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1613
* See the License for the specific language governing permissions and
1714
* limitations under the License.
18-
* #L%
1915
*/
20-
2116
package org.lmdbjava.bench;
2217

2318
import static java.nio.ByteOrder.LITTLE_ENDIAN;

0 commit comments

Comments
 (0)