From 002345322e1cbe2f4288b7a0b19ed9dedf8a4a7c Mon Sep 17 00:00:00 2001 From: Bertil Chapuis Date: Sun, 3 Mar 2024 09:24:18 +0100 Subject: [PATCH] Add missing license headers (#839) * Add missing license headers * Add script to check license headers with rat --- baremaps-cli/src/license/override.properties | 15 ++++++++++++++ .../src/main/resources/logging.properties | 15 ++++++++++++++ .../baremaps/geocoderosm/package-info.java | 15 ++++++++++++++ baremaps-core/src/test/resources/script.sql | 15 ++++++++++++++ basemap/queries/osm_drop_indexes.sql | 15 ++++++++++++++ basemap/theme.js | 16 +++++++++++++++ basemap/themes/achromatomaly.js | 17 ++++++++++++++++ basemap/themes/achromatopsia.js | 17 ++++++++++++++++ basemap/themes/contrast.js | 17 ++++++++++++++++ basemap/themes/dark.js | 17 ++++++++++++++++ basemap/themes/default.js | 17 ++++++++++++++++ basemap/themes/deuteranomaly.js | 17 ++++++++++++++++ basemap/themes/deuteranopia.js | 17 ++++++++++++++++ basemap/themes/grayscale.js | 17 ++++++++++++++++ basemap/themes/light.js | 17 ++++++++++++++++ basemap/themes/protanomaly.js | 17 ++++++++++++++++ basemap/themes/protanopia.js | 17 ++++++++++++++++ basemap/themes/transportation.js | 17 ++++++++++++++++ basemap/themes/tritanomaly.js | 17 ++++++++++++++++ basemap/themes/tritanopia.js | 17 ++++++++++++++++ examples/postgresql-join/init.sql | 15 ++++++++++++++ scripts/check-license-headers.sh | 20 +++++++++++++++++++ 22 files changed, 364 insertions(+) create mode 100644 scripts/check-license-headers.sh diff --git a/baremaps-cli/src/license/override.properties b/baremaps-cli/src/license/override.properties index 5f9001797..5c46ec86c 100644 --- a/baremaps-cli/src/license/override.properties +++ b/baremaps-cli/src/license/override.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to you under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + com.aayushatharva.brotli4j--brotli4j--1.12.0=Apache License 2.0 com.aayushatharva.brotli4j--native-osx-aarch64--1.12.0=Apache License 2.0 com.aayushatharva.brotli4j--service--1.12.0=Apache License 2.0 diff --git a/baremaps-cli/src/main/resources/logging.properties b/baremaps-cli/src/main/resources/logging.properties index 187e876b2..c84ac9311 100644 --- a/baremaps-cli/src/main/resources/logging.properties +++ b/baremaps-cli/src/main/resources/logging.properties @@ -1 +1,16 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to you under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + .level = WARNING \ No newline at end of file diff --git a/baremaps-core/src/main/java/org/apache/baremaps/geocoderosm/package-info.java b/baremaps-core/src/main/java/org/apache/baremaps/geocoderosm/package-info.java index 6f6a4a304..4171d9cf8 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/geocoderosm/package-info.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/geocoderosm/package-info.java @@ -1,3 +1,18 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for additional information regarding + * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the License. You may obtain a + * copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + /** * Experimental Geocoder based on OpenStreetMap data using a Lucene index. */ diff --git a/baremaps-core/src/test/resources/script.sql b/baremaps-core/src/test/resources/script.sql index 4577e1e1f..73b3ad719 100644 --- a/baremaps-core/src/test/resources/script.sql +++ b/baremaps-core/src/test/resources/script.sql @@ -1,3 +1,18 @@ +-- Licensed to the Apache Software Foundation (ASF) under one or more +-- contributor license agreements. See the NOTICE file distributed with +-- this work for additional information regarding copyright ownership. +-- The ASF licenses this file to you under the Apache License, Version 2.0 +-- (the "License"); you may not use this file except in compliance with +-- the License. You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. + DO $$ BEGIN PERFORM 'Hello, World!'; diff --git a/basemap/queries/osm_drop_indexes.sql b/basemap/queries/osm_drop_indexes.sql index 817b8d8be..713c2438e 100644 --- a/basemap/queries/osm_drop_indexes.sql +++ b/basemap/queries/osm_drop_indexes.sql @@ -1,3 +1,18 @@ +-- Licensed to the Apache Software Foundation (ASF) under one or more +-- contributor license agreements. See the NOTICE file distributed with +-- this work for additional information regarding copyright ownership. +-- The ASF licenses this file to you under the Apache License, Version 2.0 +-- (the "License"); you may not use this file except in compliance with +-- the License. You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. + DROP INDEX IF EXISTS osm_nodes_tags_index; DROP INDEX IF EXISTS osm_nodes_tags_tsvector_index; DROP INDEX IF EXISTS osm_nodes_geom_index; diff --git a/basemap/theme.js b/basemap/theme.js index 00a70be1a..f38b467ff 100644 --- a/basemap/theme.js +++ b/basemap/theme.js @@ -1,3 +1,19 @@ +/** + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + **/ import theme from "./themes/default.js"; export default theme; \ No newline at end of file diff --git a/basemap/themes/achromatomaly.js b/basemap/themes/achromatomaly.js index 114305094..bfe1a99ac 100644 --- a/basemap/themes/achromatomaly.js +++ b/basemap/themes/achromatomaly.js @@ -1,3 +1,20 @@ +/** + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + **/ + import style from './default.js'; import {Color, ColorBlind} from "../utils/color.js"; diff --git a/basemap/themes/achromatopsia.js b/basemap/themes/achromatopsia.js index e593b6030..39d6fa636 100644 --- a/basemap/themes/achromatopsia.js +++ b/basemap/themes/achromatopsia.js @@ -1,3 +1,20 @@ +/** + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + **/ + import style from './default.js'; import {Color, ColorBlind} from "../utils/color.js"; diff --git a/basemap/themes/contrast.js b/basemap/themes/contrast.js index f6cbee6a7..0ff2c687a 100644 --- a/basemap/themes/contrast.js +++ b/basemap/themes/contrast.js @@ -1,3 +1,20 @@ +/** + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + **/ + import style from './default.js'; import {Color} from "../utils/color.js"; diff --git a/basemap/themes/dark.js b/basemap/themes/dark.js index e4c173ef2..78244a88d 100644 --- a/basemap/themes/dark.js +++ b/basemap/themes/dark.js @@ -1,3 +1,20 @@ +/** + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + **/ + import style from './light.js'; import {Color} from "../utils/color.js"; diff --git a/basemap/themes/default.js b/basemap/themes/default.js index 833451b98..914365eb7 100644 --- a/basemap/themes/default.js +++ b/basemap/themes/default.js @@ -1,3 +1,20 @@ +/** + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + **/ + /** * The naming convention allows alphabetical sorting. * It follows the pattern: diff --git a/basemap/themes/deuteranomaly.js b/basemap/themes/deuteranomaly.js index d82134d92..e88b4a74b 100644 --- a/basemap/themes/deuteranomaly.js +++ b/basemap/themes/deuteranomaly.js @@ -1,3 +1,20 @@ +/** + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + **/ + import style from './default.js'; import {Color, ColorBlind} from "../utils/color.js"; diff --git a/basemap/themes/deuteranopia.js b/basemap/themes/deuteranopia.js index 414e201a5..7edcb3cca 100644 --- a/basemap/themes/deuteranopia.js +++ b/basemap/themes/deuteranopia.js @@ -1,3 +1,20 @@ +/** + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + **/ + import style from './default.js'; import {Color, ColorBlind} from "../utils/color.js"; diff --git a/basemap/themes/grayscale.js b/basemap/themes/grayscale.js index 53e426829..22fea6884 100644 --- a/basemap/themes/grayscale.js +++ b/basemap/themes/grayscale.js @@ -1,3 +1,20 @@ +/** + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + **/ + import style from './default.js'; import {Color} from "../utils/color.js"; diff --git a/basemap/themes/light.js b/basemap/themes/light.js index 547014ed6..0aa421220 100644 --- a/basemap/themes/light.js +++ b/basemap/themes/light.js @@ -1,3 +1,20 @@ +/** + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + **/ + import style from './grayscale.js'; import {Color} from "../utils/color.js"; diff --git a/basemap/themes/protanomaly.js b/basemap/themes/protanomaly.js index 1dd251426..5ec678da4 100644 --- a/basemap/themes/protanomaly.js +++ b/basemap/themes/protanomaly.js @@ -1,3 +1,20 @@ +/** + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + **/ + import style from './default.js'; import {Color, ColorBlind} from "../utils/color.js"; diff --git a/basemap/themes/protanopia.js b/basemap/themes/protanopia.js index bc79a85e3..e81b526f5 100644 --- a/basemap/themes/protanopia.js +++ b/basemap/themes/protanopia.js @@ -1,3 +1,20 @@ +/** + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + **/ + import style from './default.js'; import {Color, ColorBlind} from "../utils/color.js"; diff --git a/basemap/themes/transportation.js b/basemap/themes/transportation.js index 87f8cce27..3f58ae0a1 100644 --- a/basemap/themes/transportation.js +++ b/basemap/themes/transportation.js @@ -1,3 +1,20 @@ +/** + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + **/ + import style from './default.js'; import {Color} from "../utils/color.js"; diff --git a/basemap/themes/tritanomaly.js b/basemap/themes/tritanomaly.js index ecbb8769f..bd2c32564 100644 --- a/basemap/themes/tritanomaly.js +++ b/basemap/themes/tritanomaly.js @@ -1,3 +1,20 @@ +/** + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + **/ + import style from './default.js'; import {Color, ColorBlind} from "../utils/color.js"; diff --git a/basemap/themes/tritanopia.js b/basemap/themes/tritanopia.js index b14299108..c5143f2c6 100644 --- a/basemap/themes/tritanopia.js +++ b/basemap/themes/tritanopia.js @@ -1,3 +1,20 @@ +/** + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + **/ + import style from './default.js'; import {Color, ColorBlind} from "../utils/color.js"; diff --git a/examples/postgresql-join/init.sql b/examples/postgresql-join/init.sql index 1c26f8c18..799e06c6a 100644 --- a/examples/postgresql-join/init.sql +++ b/examples/postgresql-join/init.sql @@ -1,3 +1,18 @@ +-- Licensed to the Apache Software Foundation (ASF) under one or more +-- contributor license agreements. See the NOTICE file distributed with +-- this work for additional information regarding copyright ownership. +-- The ASF licenses this file to you under the Apache License, Version 2.0 +-- (the "License"); you may not use this file except in compliance with +-- the License. You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. + CREATE EXTENSION IF NOT EXISTS postgis; -- Drop and create schema diff --git a/scripts/check-license-headers.sh b/scripts/check-license-headers.sh new file mode 100644 index 000000000..bfee5c2a7 --- /dev/null +++ b/scripts/check-license-headers.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to you under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +DIR="$(dirname "$0")" +cd "$DIR" || exit +./mvnw clean && ./mvnw apache-rat:check \ No newline at end of file