Skip to content

Commit 6cae7e0

Browse files
authored
Improve the NOTICE file for the binary distribution (#940)
* Uniformize the bundling of dependency licenses * Add a line return to the main NOTICE file * Add a NOTICE-binary file that concat all the notices for the binary distribution * Remove the notices-binary director * Add missing licenses related to the source release
1 parent 0f05dea commit 6cae7e0

20 files changed

+2119
-2048
lines changed

LICENSE

+11-9
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,14 @@
210210
distribution of this product is subject to the following
211211
additional license terms.
212212

213-
- FlatGeobuf, BSD-2-Clause license, see licenses/flatgeobuf.
214-
- GeoPackage Java, MIT License, see licenses/geopackage-java.
215-
- OSMPBF, MIT License, see licenses/osm-binary.
216-
- OSM Test Data, Public domain, see licenses/osm-testdata.
217-
- Mapbox Vector Tile, Creative Commons Public License, see licenses/vector-tile-spec.
218-
- Palantir Streams, Apache License 2.0, see licenses/palantir-streams.
219-
- Planetiler, Apache License 2.0, see licenses/planetiler.
220-
- PMTiles, BSD-3-Clause license, see licenses/pmtiles.
221-
- pyosmium, BSD 2-Clause "Simplified" License, see licenses/pyosmium.
213+
- Externalsortinginjava, Public domain
214+
- FlatGeobuf, BSD-2-Clause license
215+
- GeoPackage Java, MIT License
216+
- Hilbert Curves, Public domain
217+
- OSMPBF, MIT License
218+
- OSM Test Data, Public domain
219+
- Mapbox Vector Tile, Creative Commons Public License
220+
- Palantir Streams, Apache License 2.0
221+
- Planetiler, Apache License 2.0
222+
- PMTiles, BSD-3-Clause license
223+
- pyosmium, BSD 2-Clause "Simplified" License

NOTICE

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Copyright 2020-2022.
66

77
This product includes software developed at
88
The Apache Software Foundation (http://www.apache.org/).
9+
910
-----------------------------------------------------------------------
1011

1112
This product contains code from Planetiler project

NOTICE-binary

+2,094
Large diffs are not rendered by default.

baremaps-cli/src/assembly/bin.xml

+8-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ limitations under the License.
2929
<outputDirectory>.</outputDirectory>
3030
<includes>
3131
<include>DISCLAIMER</include>
32-
<include>NOTICE</include>
3332
<include>licenses/**</include>
3433
<include>licenses-binary/**</include>
3534
<include>notices/**</include>
@@ -81,6 +80,14 @@ limitations under the License.
8180
</includes>
8281
</fileSet>
8382
</fileSets>
83+
<files>
84+
<file>
85+
<source>../NOTICE-binary</source>
86+
<outputDirectory>.</outputDirectory>
87+
<destName>NOTICE</destName>
88+
<fileMode>0644</fileMode>
89+
</file>
90+
</files>
8491
<dependencySets>
8592
<dependencySet>
8693
<outputDirectory>lib</outputDirectory>

baremaps-cli/src/license/bundle.ftl

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ This template is used to list the dependencies and their licenses at the end of
3131
<#return project.artifactId + "-" + project.version>
3232
</#function>
3333

34-
This product bundles the following dependencies:
34+
Dependencies produced outside the ASF that is included in the
35+
distribution of this product is subject to the following
36+
additional license terms.
3537

3638
<#if dependencyMap?size != 0>
3739
<#list dependencyMap as dependency>

licenses/externalsortinginjava

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This code is in the public domain. You can take it, modify it, and use it in your commercial projects without attribution. We encourage you, however, to acknowledge this package whenever possible and to contribute your bug fixes and reports.

licenses/hilbert_curves

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This code is in the public domain.

0 commit comments

Comments
 (0)