Skip to content

Commit

Permalink
Add licenses verification
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
injectives committed Jun 1, 2022
1 parent 505f214 commit a21bff4
Show file tree
Hide file tree
Showing 13 changed files with 1,730 additions and 27 deletions.
5 changes: 5 additions & 0 deletions LICENSES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This file contains the full license text of the included third party
libraries. For an overview of the licenses see the NOTICE.txt file.



22 changes: 19 additions & 3 deletions NOTICE.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
Neo4j
Copyright © Neo4j Sweden AB (referred to in this notice as "Neo4j")
[http://neo4j.com]
Copyright © 2002-2018 Neo4j Sweden AB (referred to in this notice as "Neo4j")
[http://neo4j.com]

This product includes software ("Software") developed and owned by Neo4j.

The Software is subject to the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
Version 3 (http://www.fsf.org/licensing/licenses/agpl-3.0.html),
included in the LICENSE.txt file, with the Commons Clause.

Neo4j Enterprise object code can be licensed independently from the source
under separate commercial terms. Email inquiries can be directed
to: licensing@neo4j.com. More information is also available
at: https://neo4j.com/licensing/

Full license texts are found in LICENSES.txt.


Third-party licenses
--------------------

This product includes software ("Software") developed by Neo4j.
378 changes: 378 additions & 0 deletions bundle/LICENSES.txt

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions bundle/NOTICE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Neo4j
Copyright © 2002-2018 Neo4j Sweden AB (referred to in this notice as "Neo4j")
[http://neo4j.com]

This product includes software ("Software") developed and owned by Neo4j.

The Software is subject to the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
Version 3 (http://www.fsf.org/licensing/licenses/agpl-3.0.html),
included in the LICENSE.txt file, with the Commons Clause.

Neo4j Enterprise object code can be licensed independently from the source
under separate commercial terms. Email inquiries can be directed
to: licensing@neo4j.com. More information is also available
at: https://neo4j.com/licensing/

Full license texts are found in LICENSES.txt.


Third-party licenses
--------------------

Apache Software License, Version 2.0
Netty/Buffer
Netty/Codec
Netty/Common
Netty/Handler
Netty/Resolver
Netty/Transport
Non-Blocking Reactive Foundation for the JVM

Creative Commons 0
reactive-streams

MIT License
SLF4J API Module

378 changes: 378 additions & 0 deletions driver/LICENSES.txt

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions driver/NOTICE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Neo4j
Copyright © 2002-2018 Neo4j Sweden AB (referred to in this notice as "Neo4j")
[http://neo4j.com]

This product includes software ("Software") developed and owned by Neo4j.

The Software is subject to the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
Version 3 (http://www.fsf.org/licensing/licenses/agpl-3.0.html),
included in the LICENSE.txt file, with the Commons Clause.

Neo4j Enterprise object code can be licensed independently from the source
under separate commercial terms. Email inquiries can be directed
to: licensing@neo4j.com. More information is also available
at: https://neo4j.com/licensing/

Full license texts are found in LICENSES.txt.


Third-party licenses
--------------------

Apache Software License, Version 2.0
Netty/Buffer
Netty/Codec
Netty/Common
Netty/Handler
Netty/Resolver
Netty/Transport
Non-Blocking Reactive Foundation for the JVM

Creative Commons 0
reactive-streams

MIT License
SLF4J API Module

350 changes: 350 additions & 0 deletions examples/LICENSES.txt

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions examples/NOTICE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Neo4j
Copyright © 2002-2018 Neo4j Sweden AB (referred to in this notice as "Neo4j")
[http://neo4j.com]

This product includes software ("Software") developed and owned by Neo4j.

The Software is subject to the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
Version 3 (http://www.fsf.org/licensing/licenses/agpl-3.0.html),
included in the LICENSE.txt file, with the Commons Clause.

Neo4j Enterprise object code can be licensed independently from the source
under separate commercial terms. Email inquiries can be directed
to: licensing@neo4j.com. More information is also available
at: https://neo4j.com/licensing/

Full license texts are found in LICENSES.txt.


Third-party licenses
--------------------

Apache Software License, Version 2.0
Netty/Buffer
Netty/Codec
Netty/Common
Netty/Handler
Netty/Resolver
Netty/Transport
Non-Blocking Reactive Foundation for the JVM
RxJava

Creative Commons 0
reactive-streams

104 changes: 80 additions & 24 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
<svm.version>21.3.2</svm.version>
<micrometer.version>1.9.0</micrometer.version>
<testcontainers.version>1.17.1</testcontainers.version>
<build-resources.version>4.4.7</build-resources.version>
<!-- To be overwritten by child projects -->
<moduleName/>
</properties>
Expand Down Expand Up @@ -411,37 +412,92 @@
<fail>true</fail>
</configuration>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>3.0</version>
<configuration>
<strictCheck>true</strictCheck>
<header>${rootDir}/build/license-header.txt</header>
<mapping>
<java>SLASHSTAR_STYLE</java>
</mapping>
<includes>
<include>**/*.java</include>
</includes>
</configuration>
<executions>
<execution>
<!-- always check license headers -->
<id>check-licenses</id>
<phase>initialize</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
<!-- also available: `mvn license:[cmd]` where cmd could be one of `check`, `format`, or `delete`-->
</executions>
<dependencies>
<dependency>
<groupId>org.neo4j.build</groupId>
<artifactId>build-resources</artifactId>
<version>${build-resources.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.neo4j.build.plugins</groupId>
<artifactId>licensing-maven-plugin</artifactId>
<version>1.7.11</version>
<configuration>
<failIfDisliked>true</failIfDisliked>
<failIfMissing>true</failIfMissing>
<plainTextReport>true</plainTextReport>
<prependText>licensing/notice-agpl-prefix.txt</prependText>
<excludedGroups>
^((org.neo4j.driver){1})$
</excludedGroups>
<includedScopes>compile</includedScopes>
</configuration>
<executions>
<execution>
<id>list-all-licenses</id>
<phase>compile</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<licensingRequirementFiles>
<licensingRequirementFile>licensing/licensing-requirements-base.xml</licensingRequirementFile>
</licensingRequirementFiles>
<thirdPartyLicensingFilename>${project.artifactId}-${project.version}-NOTICE.txt
</thirdPartyLicensingFilename>
<checkExistingNoticeFile>${project.build.directory}/../NOTICE.txt</checkExistingNoticeFile>
<listPrependText>licensing/list-prefix.txt</listPrependText>
<listReport>${project.artifactId}-${project.version}-LICENSES.txt</listReport>
<checkExistingLicensesFile>${project.build.directory}/../LICENSES.txt</checkExistingLicensesFile>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.neo4j.build</groupId>
<artifactId>build-resources</artifactId>
<version>${build-resources.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>3.0</version>
<configuration>
<header>${rootDir}/build/license-header.txt</header>
<mapping>
<java>SLASHSTAR_STYLE</java>
</mapping>
<properties>
<thisYear>2020</thisYear>
</properties>
<includes>
<include>**/*.java</include>
</includes>
</configuration>
<executions>
<execution>
<!-- always check license headers -->
<id>check-license-header</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
<!-- also available: `mvn license:[cmd]` where cmd could be one of `check`, `format`, or `delete`-->
</executions>
</plugin>
<plugin>
<groupId>org.neo4j.build.plugins</groupId>
<artifactId>licensing-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
Loading

0 comments on commit a21bff4

Please sign in to comment.