Skip to content

Commit 51532ab

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 51532ab

File tree

13 files changed

+1736
-27
lines changed

13 files changed

+1736
-27
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: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
Neo4j
2-
Copyright © Neo4j Sweden AB (referred to in this notice as "Neo4j")
3-
[http://neo4j.com]
2+
Copyright © 2002-2018 Neo4j Sweden AB (referred to in this notice as "Neo4j")
3+
[http://neo4j.com]
4+
5+
This product includes software ("Software") developed and owned by Neo4j.
6+
7+
The Software is subject to the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
8+
Version 3 (http://www.fsf.org/licensing/licenses/agpl-3.0.html),
9+
included in the LICENSE.txt file, with the Commons Clause.
10+
11+
Neo4j Enterprise object code can be licensed independently from the source
12+
under separate commercial terms. Email inquiries can be directed
13+
to: [email protected]. More information is also available
14+
at: https://neo4j.com/licensing/
15+
16+
Full license texts are found in LICENSES.txt.
17+
18+
19+
Third-party licenses
20+
--------------------
421

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

bundle/LICENSES.txt

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

bundle/NOTICE.txt

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Neo4j
2+
Copyright © 2002-2018 Neo4j Sweden AB (referred to in this notice as "Neo4j")
3+
[http://neo4j.com]
4+
5+
This product includes software ("Software") developed and owned by Neo4j.
6+
7+
The Software is subject to the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
8+
Version 3 (http://www.fsf.org/licensing/licenses/agpl-3.0.html),
9+
included in the LICENSE.txt file, with the Commons Clause.
10+
11+
Neo4j Enterprise object code can be licensed independently from the source
12+
under separate commercial terms. Email inquiries can be directed
13+
to: [email protected]. More information is also available
14+
at: https://neo4j.com/licensing/
15+
16+
Full license texts are found in LICENSES.txt.
17+
18+
19+
Third-party licenses
20+
--------------------
21+
22+
Apache Software License, Version 2.0
23+
Neo4j Java Driver
24+
Netty/Buffer
25+
Netty/Codec
26+
Netty/Common
27+
Netty/Handler
28+
Netty/Resolver
29+
Netty/Transport
30+
Non-Blocking Reactive Foundation for the JVM
31+
32+
Creative Commons 0
33+
reactive-streams
34+
35+
MIT License
36+
SLF4J API Module
37+

driver/LICENSES.txt

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

driver/NOTICE.txt

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Neo4j
2+
Copyright © 2002-2018 Neo4j Sweden AB (referred to in this notice as "Neo4j")
3+
[http://neo4j.com]
4+
5+
This product includes software ("Software") developed and owned by Neo4j.
6+
7+
The Software is subject to the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
8+
Version 3 (http://www.fsf.org/licensing/licenses/agpl-3.0.html),
9+
included in the LICENSE.txt file, with the Commons Clause.
10+
11+
Neo4j Enterprise object code can be licensed independently from the source
12+
under separate commercial terms. Email inquiries can be directed
13+
to: [email protected]. More information is also available
14+
at: https://neo4j.com/licensing/
15+
16+
Full license texts are found in LICENSES.txt.
17+
18+
19+
Third-party licenses
20+
--------------------
21+
22+
Apache Software License, Version 2.0
23+
Netty/Buffer
24+
Netty/Codec
25+
Netty/Common
26+
Netty/Handler
27+
Netty/Resolver
28+
Netty/Transport
29+
Non-Blocking Reactive Foundation for the JVM
30+
31+
Creative Commons 0
32+
reactive-streams
33+
34+
MIT License
35+
SLF4J API Module
36+

examples/LICENSES.txt

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

examples/NOTICE.txt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Neo4j
2+
Copyright © 2002-2018 Neo4j Sweden AB (referred to in this notice as "Neo4j")
3+
[http://neo4j.com]
4+
5+
This product includes software ("Software") developed and owned by Neo4j.
6+
7+
The Software is subject to the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
8+
Version 3 (http://www.fsf.org/licensing/licenses/agpl-3.0.html),
9+
included in the LICENSE.txt file, with the Commons Clause.
10+
11+
Neo4j Enterprise object code can be licensed independently from the source
12+
under separate commercial terms. Email inquiries can be directed
13+
to: [email protected]. More information is also available
14+
at: https://neo4j.com/licensing/
15+
16+
Full license texts are found in LICENSES.txt.
17+
18+
19+
Third-party licenses
20+
--------------------
21+
22+
Apache Software License, Version 2.0
23+
Neo4j Java Driver
24+
Netty/Buffer
25+
Netty/Codec
26+
Netty/Common
27+
Netty/Handler
28+
Netty/Resolver
29+
Netty/Transport
30+
Non-Blocking Reactive Foundation for the JVM
31+
RxJava
32+
33+
Creative Commons 0
34+
reactive-streams
35+

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>5.0.0-SNAPSHOT</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-agpl-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)