Skip to content

Commit 43fc60c

Browse files
committed
Add licenses verification
This update brings similar configuration to Neo4j server in order to ensure approved licenses are used. Additionally, it removes unused `thisYear` property from `com.mycila:license-maven-plugin` configuration.
1 parent 505f214 commit 43fc60c

File tree

13 files changed

+1713
-28
lines changed

13 files changed

+1713
-28
lines changed

LICENSES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This file contains the full license text of the included third party
2+
libraries. For an overview of the licenses see the NOTICE.txt file.
3+
4+
5+

NOTICE.txt

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1-
Neo4j
2-
Copyright © Neo4j Sweden AB (referred to in this notice as "Neo4j")
3-
[http://neo4j.com]
1+
Copyright (c) 2002-2018, "Neo4j,"
2+
Neo4j Sweden AB [http://neo4j.com]
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
7+
Unless required by applicable law or agreed to in writing, software
8+
distributed under the License is distributed on an "AS IS" BASIS,
9+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
See the License for the specific language governing permissions and
11+
limitations under the License.
12+
13+
Full license texts are found in LICENSES.txt.
14+
15+
16+
Third-party licenses
17+
--------------------
418

5-
This product includes software ("Software") developed by Neo4j.

bundle/LICENSES.txt

Lines changed: 378 additions & 0 deletions
Large diffs are not rendered by default.

bundle/NOTICE.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Copyright (c) 2002-2018, "Neo4j,"
2+
Neo4j Sweden AB [http://neo4j.com]
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
7+
Unless required by applicable law or agreed to in writing, software
8+
distributed under the License is distributed on an "AS IS" BASIS,
9+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
See the License for the specific language governing permissions and
11+
limitations under the License.
12+
13+
Full license texts are found in LICENSES.txt.
14+
15+
16+
Third-party licenses
17+
--------------------
18+
19+
Apache Software License, Version 2.0
20+
Netty/Buffer
21+
Netty/Codec
22+
Netty/Common
23+
Netty/Handler
24+
Netty/Resolver
25+
Netty/Transport
26+
Non-Blocking Reactive Foundation for the JVM
27+
28+
Creative Commons 0
29+
reactive-streams
30+
31+
MIT License
32+
SLF4J API Module
33+

driver/LICENSES.txt

Lines changed: 378 additions & 0 deletions
Large diffs are not rendered by default.

driver/NOTICE.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Copyright (c) 2002-2018, "Neo4j,"
2+
Neo4j Sweden AB [http://neo4j.com]
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
7+
Unless required by applicable law or agreed to in writing, software
8+
distributed under the License is distributed on an "AS IS" BASIS,
9+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
See the License for the specific language governing permissions and
11+
limitations under the License.
12+
13+
Full license texts are found in LICENSES.txt.
14+
15+
16+
Third-party licenses
17+
--------------------
18+
19+
Apache Software License, Version 2.0
20+
Netty/Buffer
21+
Netty/Codec
22+
Netty/Common
23+
Netty/Handler
24+
Netty/Resolver
25+
Netty/Transport
26+
Non-Blocking Reactive Foundation for the JVM
27+
28+
Creative Commons 0
29+
reactive-streams
30+
31+
MIT License
32+
SLF4J API Module
33+

examples/LICENSES.txt

Lines changed: 350 additions & 0 deletions
Large diffs are not rendered by default.

examples/NOTICE.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Copyright (c) 2002-2018, "Neo4j,"
2+
Neo4j Sweden AB [http://neo4j.com]
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
7+
Unless required by applicable law or agreed to in writing, software
8+
distributed under the License is distributed on an "AS IS" BASIS,
9+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
See the License for the specific language governing permissions and
11+
limitations under the License.
12+
13+
Full license texts are found in LICENSES.txt.
14+
15+
16+
Third-party licenses
17+
--------------------
18+
19+
Apache Software License, Version 2.0
20+
Netty/Buffer
21+
Netty/Codec
22+
Netty/Common
23+
Netty/Handler
24+
Netty/Resolver
25+
Netty/Transport
26+
Non-Blocking Reactive Foundation for the JVM
27+
RxJava
28+
29+
Creative Commons 0
30+
reactive-streams
31+

pom.xml

Lines changed: 80 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
<svm.version>21.3.2</svm.version>
5454
<micrometer.version>1.9.0</micrometer.version>
5555
<testcontainers.version>1.17.1</testcontainers.version>
56+
<build-resources.version>4.4.7</build-resources.version>
5657
<!-- To be overwritten by child projects -->
5758
<moduleName/>
5859
</properties>
@@ -411,37 +412,92 @@
411412
<fail>true</fail>
412413
</configuration>
413414
</plugin>
415+
<plugin>
416+
<groupId>com.mycila</groupId>
417+
<artifactId>license-maven-plugin</artifactId>
418+
<version>3.0</version>
419+
<configuration>
420+
<strictCheck>true</strictCheck>
421+
<header>${rootDir}/build/license-header.txt</header>
422+
<mapping>
423+
<java>SLASHSTAR_STYLE</java>
424+
</mapping>
425+
<includes>
426+
<include>**/*.java</include>
427+
</includes>
428+
</configuration>
429+
<executions>
430+
<execution>
431+
<!-- always check license headers -->
432+
<id>check-licenses</id>
433+
<phase>initialize</phase>
434+
<goals>
435+
<goal>check</goal>
436+
</goals>
437+
</execution>
438+
<!-- also available: `mvn license:[cmd]` where cmd could be one of `check`, `format`, or `delete`-->
439+
</executions>
440+
<dependencies>
441+
<dependency>
442+
<groupId>org.neo4j.build</groupId>
443+
<artifactId>build-resources</artifactId>
444+
<version>${build-resources.version}</version>
445+
</dependency>
446+
</dependencies>
447+
</plugin>
448+
<plugin>
449+
<groupId>org.neo4j.build.plugins</groupId>
450+
<artifactId>licensing-maven-plugin</artifactId>
451+
<version>1.7.11</version>
452+
<configuration>
453+
<failIfDisliked>true</failIfDisliked>
454+
<failIfMissing>true</failIfMissing>
455+
<plainTextReport>true</plainTextReport>
456+
<prependText>licensing/notice-asl-prefix.txt</prependText>
457+
<excludedGroups>
458+
^((org.neo4j.driver){1})$
459+
</excludedGroups>
460+
<includedScopes>compile</includedScopes>
461+
</configuration>
462+
<executions>
463+
<execution>
464+
<id>list-all-licenses</id>
465+
<phase>compile</phase>
466+
<goals>
467+
<goal>check</goal>
468+
</goals>
469+
<configuration>
470+
<licensingRequirementFiles>
471+
<licensingRequirementFile>licensing/licensing-requirements-base.xml</licensingRequirementFile>
472+
</licensingRequirementFiles>
473+
<thirdPartyLicensingFilename>${project.artifactId}-${project.version}-NOTICE.txt
474+
</thirdPartyLicensingFilename>
475+
<checkExistingNoticeFile>${project.build.directory}/../NOTICE.txt</checkExistingNoticeFile>
476+
<listPrependText>licensing/list-prefix.txt</listPrependText>
477+
<listReport>${project.artifactId}-${project.version}-LICENSES.txt</listReport>
478+
<checkExistingLicensesFile>${project.build.directory}/../LICENSES.txt</checkExistingLicensesFile>
479+
</configuration>
480+
</execution>
481+
</executions>
482+
<dependencies>
483+
<dependency>
484+
<groupId>org.neo4j.build</groupId>
485+
<artifactId>build-resources</artifactId>
486+
<version>${build-resources.version}</version>
487+
</dependency>
488+
</dependencies>
489+
</plugin>
414490
</plugins>
415491
</pluginManagement>
416492

417493
<plugins>
418494
<plugin>
419495
<groupId>com.mycila</groupId>
420496
<artifactId>license-maven-plugin</artifactId>
421-
<version>3.0</version>
422-
<configuration>
423-
<header>${rootDir}/build/license-header.txt</header>
424-
<mapping>
425-
<java>SLASHSTAR_STYLE</java>
426-
</mapping>
427-
<properties>
428-
<thisYear>2020</thisYear>
429-
</properties>
430-
<includes>
431-
<include>**/*.java</include>
432-
</includes>
433-
</configuration>
434-
<executions>
435-
<execution>
436-
<!-- always check license headers -->
437-
<id>check-license-header</id>
438-
<phase>validate</phase>
439-
<goals>
440-
<goal>check</goal>
441-
</goals>
442-
</execution>
443-
<!-- also available: `mvn license:[cmd]` where cmd could be one of `check`, `format`, or `delete`-->
444-
</executions>
497+
</plugin>
498+
<plugin>
499+
<groupId>org.neo4j.build.plugins</groupId>
500+
<artifactId>licensing-maven-plugin</artifactId>
445501
</plugin>
446502
<plugin>
447503
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)