From d3e7e8f260cf24e00c736308e825666bb60c8f76 Mon Sep 17 00:00:00 2001 From: Dennis Meister Date: Wed, 10 Jan 2024 16:52:09 +0100 Subject: [PATCH] Update license header to 2024 Signed-off-by: Dennis Meister --- .devcontainer/Dockerfile | 2 +- .../tests/automated_tests/runtime_test.py | 8 +-- .licensechecker.yml | 2 +- .ort.yml | 2 +- .pre-commit-config.yaml | 52 ++++++++++++++++++- CMakeLists.txt | 2 +- CONTRIBUTING.md | 2 +- app/CMakeLists.txt | 2 +- app/Dockerfile | 2 +- app/src/CMakeLists.txt | 2 +- app/src/Launcher.cpp | 2 +- app/src/SampleApp.cpp | 2 +- app/src/SampleApp.h | 2 +- app/tests/CMakeLists.txt | 2 +- app/tests/utests/CMakeLists.txt | 2 +- app/tests/utests/SampleApp_test.cpp | 2 +- build.sh | 2 +- install_dependencies.sh | 2 +- license_header.txt | 13 +++++ 19 files changed, 84 insertions(+), 21 deletions(-) create mode 100644 license_header.txt diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 3b90734..e478cd1 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.devcontainer/tests/automated_tests/runtime_test.py b/.devcontainer/tests/automated_tests/runtime_test.py index b8b5bae..a37b6e2 100644 --- a/.devcontainer/tests/automated_tests/runtime_test.py +++ b/.devcontainer/tests/automated_tests/runtime_test.py @@ -1,15 +1,15 @@ -# Copyright (c) 2023 Robert Bosch GmbH - +# Copyright (c) 2023-2024 Contributors to the Eclipse Foundation +# # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at # https://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. - +# # SPDX-License-Identifier: Apache-2.0 import os diff --git a/.licensechecker.yml b/.licensechecker.yml index b43a21f..b97ef1d 100644 --- a/.licensechecker.yml +++ b/.licensechecker.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH +# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.ort.yml b/.ort.yml index 4cf265a..c54bc64 100644 --- a/.ort.yml +++ b/.ort.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2023-2024 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0a8a3fa..779ed2c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available at +# https://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. +# +# SPDX-License-Identifier: Apache-2.0 + fail_fast: false repos: - repo: https://github.com/pocc/pre-commit-hooks @@ -31,5 +45,41 @@ repos: "--suppress=*:build/*", "--suppress=*:app/vehicle_model/*", "--suppress=*:examples/vehicle_model/*", - "--suppress=*:/*/.conan/*" + "--suppress=*:/*/.conan/*", ] + + - repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.5.4 + hooks: + - id: insert-license + files: '.*\.(py|pyi|yaml|yml|sh)$' + exclude: "reinstall-cmake.sh" + args: + - --license-filepath + - license_header.txt + - --comment-style + - "#" + - --use-current-year + - --allow-past-years + - --skip-license-insertion-comment=This file is maintained by velocitas CLI, do not modify manually. + - id: insert-license + files: '.*\.(cpp|c|cc|h)$' + exclude: '.*\.(pb.cpp|pb.c|pb.cc|pb.h)$' + args: + - --license-filepath + - license_header.txt + - --comment-style + - /**| *| */ + - --use-current-year + - --allow-past-years + - --skip-license-insertion-comment=This file is maintained by velocitas CLI, do not modify manually. + - id: insert-license + files: "Dockerfile.*|CMakeLists.txt" + args: + - --license-filepath + - license_header.txt + - --comment-style + - "#" + - --use-current-year + - --allow-past-years + - --skip-license-insertion-comment=This file is maintained by velocitas CLI, do not modify manually. diff --git a/CMakeLists.txt b/CMakeLists.txt index c342b41..4a37f40 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH +# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fafb553..cab147c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -57,7 +57,7 @@ In this project, [conan](https://conan.io) is used to manage the C++ dependencie Please make sure any file you newly create contains a proper license header like this: ```python -# Copyright (c) 2022 Robert Bosch GmbH +# Copyright (c) 2024 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index adc27e0..7722ea8 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH +# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/app/Dockerfile b/app/Dockerfile index 43aa5b1..c28acfa 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH +# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/app/src/CMakeLists.txt b/app/src/CMakeLists.txt index e34f433..b66c498 100644 --- a/app/src/CMakeLists.txt +++ b/app/src/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH +# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/app/src/Launcher.cpp b/app/src/Launcher.cpp index 49d06bf..07d546a 100644 --- a/app/src/Launcher.cpp +++ b/app/src/Launcher.cpp @@ -1,5 +1,5 @@ /** - * Copyright (c) 2022-2023 Robert Bosch GmbH + * Copyright (c) 2022-2024 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at diff --git a/app/src/SampleApp.cpp b/app/src/SampleApp.cpp index 1e2b783..723af53 100644 --- a/app/src/SampleApp.cpp +++ b/app/src/SampleApp.cpp @@ -1,5 +1,5 @@ /** - * Copyright (c) 2023 Robert Bosch GmbH + * Copyright (c) 2023-2024 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at diff --git a/app/src/SampleApp.h b/app/src/SampleApp.h index 2390b30..c733e7c 100644 --- a/app/src/SampleApp.h +++ b/app/src/SampleApp.h @@ -1,5 +1,5 @@ /** - * Copyright (c) 2023 Robert Bosch GmbH + * Copyright (c) 2023-2024 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at diff --git a/app/tests/CMakeLists.txt b/app/tests/CMakeLists.txt index e751155..7b60969 100644 --- a/app/tests/CMakeLists.txt +++ b/app/tests/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH +# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/app/tests/utests/CMakeLists.txt b/app/tests/utests/CMakeLists.txt index 0655398..18acefa 100644 --- a/app/tests/utests/CMakeLists.txt +++ b/app/tests/utests/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH +# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/app/tests/utests/SampleApp_test.cpp b/app/tests/utests/SampleApp_test.cpp index 605de21..00f0817 100644 --- a/app/tests/utests/SampleApp_test.cpp +++ b/app/tests/utests/SampleApp_test.cpp @@ -1,5 +1,5 @@ /** - * Copyright (c) 2022 Robert Bosch GmbH + * Copyright (c) 2022-2024 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at diff --git a/build.sh b/build.sh index 4539c3b..94cc8e2 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022 Robert Bosch GmbH +# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/install_dependencies.sh b/install_dependencies.sh index be5e2f5..c11b0bf 100755 --- a/install_dependencies.sh +++ b/install_dependencies.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Robert Bosch GmbH +# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/license_header.txt b/license_header.txt new file mode 100644 index 0000000..ffd6fc7 --- /dev/null +++ b/license_header.txt @@ -0,0 +1,13 @@ +Copyright (c) 2024 Contributors to the Eclipse Foundation + +This program and the accompanying materials are made available under the +terms of the Apache License, Version 2.0 which is available at +https://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. + +SPDX-License-Identifier: Apache-2.0