From 48ab367c98fbe8a602c103e543a038ac7b68f1bb Mon Sep 17 00:00:00 2001 From: George Adams Date: Wed, 20 Mar 2024 16:49:10 +0000 Subject: [PATCH] add license checker GH action --- .azure-devops/build/build.yml | 13 ++++++ .azure-devops/build/steps/macOS/before.yml | 13 ++++++ .../build/steps/macOS/build_hotspot.yml | 13 ++++++ .azure-devops/build/steps/shared/after.yml | 13 ++++++ .azure-devops/build/steps/shared/before.yml | 13 ++++++ .../steps/shared/set_boot_jdk_version.yml | 13 ++++++ .azure-devops/build/steps/windows/before.yml | 13 ++++++ .../build/steps/windows/build_hotspot.yml | 13 ++++++ .azure-devops/openjdk-pipelines.yml | 13 ++++++ .azure-devops/test/jobs/steps/parallel.yml | 13 ++++++ .azure-devops/test/jobs/steps/test.yml | 13 ++++++ .azure-devops/test/jobs/template.yml | 12 +++++ .azure-devops/test/sanity.yml | 12 +++++ .github/dependabot.yml | 13 ++++++ .github/labeler.yml | 13 ++++++ .github/linters/.markdown-lint.yml | 13 ++++++ .github/linters/sun_checks.xml | 15 +++++++ .github/linters/suppressed-java.xml | 15 +++++++ .github/regex_labeler.yml | 13 ++++++ .github/workflows/build-autotriage.yml | 13 ++++++ .github/workflows/build.yml | 13 ++++++ .github/workflows/ca-cert-updater.yml | 13 ++++++ .github/workflows/code-freeze.yml | 13 ++++++ .github/workflows/comment-bot.yml | 13 ++++++ .github/workflows/dependabot-auto-merge.yml | 13 ++++++ .github/workflows/labeler.yml | 13 ++++++ .github/workflows/license-checker.yml | 29 ++++++++++++ .github/workflows/linter.yml | 13 ++++++ .github/workflows/ossf-scorecard.yml | 13 ++++++ .github/workflows/signsbom.yml | 13 ++++++ .github/workflows/testsbom.yml | 13 ++++++ .licenserc.yaml | 45 +++++++++++++++++++ build-farm/make-adopt-build-farm.sh | 22 +++++---- .../platform-specific-configurations/aix.sh | 22 +++++---- .../alpine-linux.sh | 22 +++++---- .../freebsd.sh | 22 +++++---- .../platform-specific-configurations/linux.sh | 22 +++++---- .../platform-specific-configurations/mac.sh | 22 +++++---- .../solaris.sh | 22 +++++---- .../windows.sh | 22 +++++---- .../set-platform-specific-configurations.sh | 22 +++++---- build-farm/sign-releases.sh | 22 +++++---- build-farm/signSBOM.sh | 22 +++++---- configureBuild.sh | 21 ++++----- cyclonedx-lib/build.xml | 24 +++++----- cyclonedx-lib/sign_src/TemurinSignSBOM.java | 27 +++++------ cyclonedx-lib/sign_src/package-info.java | 28 ++++++------ .../src/temurin/sbom/TemurinGenSBOM.java | 29 ++++++------ .../src/temurin/sbom/package-info.java | 28 ++++++------ docker-build.sh | 22 +++++---- docker/.gitignore | 13 ++++++ docker/buildDocker.sh | 13 ++++++ docker/dockerfile-generator.sh | 32 +++++++++---- entitlements.plist | 15 +++++++ makejdk-any-platform.sh | 22 ++++----- native-build.sh | 22 +++++---- sbin/build.sh | 24 +++++----- sbin/build.template | 15 ------- sbin/common/common.sh | 24 +++++----- sbin/common/config_init.sh | 25 +++++------ sbin/common/constants.sh | 22 +++++---- sbin/common/sbom.sh | 13 ++++++ sbin/prepareWorkspace.sh | 24 +++++----- sbin/sig_check/freemarker.asc | 13 ++++++ sbin/sig_check/freetype.asc | 13 ++++++ security/mk-cacerts.sh | 20 ++++----- serverTimestamp.properties | 13 ++++++ sign.sh | 22 +++++---- signalhandler.sh | 22 ++++----- test/functional/buildAndPackage/build.xml | 24 +++++----- test/functional/buildAndPackage/playlist.xml | 23 +++++----- .../adoptium/test/BundledFreetypeTest.java | 19 ++++---- .../net/adoptium/test/CudaEnabledTest.java | 15 +++++++ .../src/net/adoptium/test/FeatureTests.java | 19 ++++---- .../src/net/adoptium/test/JdkPlatform.java | 19 ++++---- .../src/net/adoptium/test/JdkVersion.java | 19 ++++---- .../src/net/adoptium/test/StreamUtils.java | 19 ++++---- .../adoptium/test/VendorPropertiesTest.java | 19 ++++---- .../net/adoptium/test/VerifyCACertsTest.java | 19 ++++---- .../src/net/adoptium/test/package-info.java | 19 ++++---- test/functional/buildAndPackage/testng.xml | 23 +++++----- test/system/reproducibleCompare/build.xml | 24 +++++----- .../linux_repro_build_compare.sh | 20 ++++----- test/system/reproducibleCompare/playlist.xml | 23 +++++----- .../build_autotriage/autotriage_regexes.sh | 22 +++++---- tooling/build_autotriage/build_autotriage.sh | 21 +++++---- tooling/common_logging.sh | 13 ++++++ tooling/release_download_test.sh | 13 ++++++ tooling/reproducible/comparable_patch.sh | 20 ++++----- .../reproducible/linux_repro_build_compare.sh | 20 ++++----- tooling/reproducible/repro_common.sh | 20 ++++----- tooling/reproducible/repro_compare.sh | 24 +++++----- tooling/reproducible/repro_process.sh | 24 +++++----- .../reproducible/windows_build_as_temurin.sh | 20 ++++----- .../windows_repro_build_compare.sh | 20 ++++----- tooling/src/c/WindowsUpdateVsVersionInfo.c | 29 ++++++------ tooling/src/java/temurin/tools/BinRepl.java | 25 ++++++----- .../src/java/temurin/tools/package-info.java | 28 ++++++------ tooling/strace_analysis.sh | 21 +++++---- tooling/validateSBOMcontent.sh | 13 ++++++ 100 files changed, 1233 insertions(+), 658 deletions(-) create mode 100644 .github/workflows/license-checker.yml create mode 100644 .licenserc.yaml diff --git a/.azure-devops/build/build.yml b/.azure-devops/build/build.yml index 355af7677..517f4c9ad 100644 --- a/.azure-devops/build/build.yml +++ b/.azure-devops/build/build.yml @@ -1,3 +1,16 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + # Build Stages Template # # supported platform & versions: diff --git a/.azure-devops/build/steps/macOS/before.yml b/.azure-devops/build/steps/macOS/before.yml index 87aca91ef..44c840efe 100644 --- a/.azure-devops/build/steps/macOS/before.yml +++ b/.azure-devops/build/steps/macOS/before.yml @@ -1,3 +1,16 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + # before.yml # install macOS platform dependencies & set environment variables diff --git a/.azure-devops/build/steps/macOS/build_hotspot.yml b/.azure-devops/build/steps/macOS/build_hotspot.yml index 1cb8121d1..6e2d5f0f1 100644 --- a/.azure-devops/build/steps/macOS/build_hotspot.yml +++ b/.azure-devops/build/steps/macOS/build_hotspot.yml @@ -1,3 +1,16 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + # build_hotspot.yml # run the ./makejdk-any-platform.sh and upload generated files to artifacts diff --git a/.azure-devops/build/steps/shared/after.yml b/.azure-devops/build/steps/shared/after.yml index 90e4e384a..2958fae54 100644 --- a/.azure-devops/build/steps/shared/after.yml +++ b/.azure-devops/build/steps/shared/after.yml @@ -1,3 +1,16 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + steps: # display all environment variables when system.debug is set to true - bash: | diff --git a/.azure-devops/build/steps/shared/before.yml b/.azure-devops/build/steps/shared/before.yml index 2de0e8381..59cdb7b2d 100644 --- a/.azure-devops/build/steps/shared/before.yml +++ b/.azure-devops/build/steps/shared/before.yml @@ -1,3 +1,16 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + # before.yml # 1. check required environment variables # 2. checkout openjdk-build repo diff --git a/.azure-devops/build/steps/shared/set_boot_jdk_version.yml b/.azure-devops/build/steps/shared/set_boot_jdk_version.yml index f4723e489..bc02c04aa 100644 --- a/.azure-devops/build/steps/shared/set_boot_jdk_version.yml +++ b/.azure-devops/build/steps/shared/set_boot_jdk_version.yml @@ -1,3 +1,16 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + steps: - bash: | BOOTJDK_VERSION= diff --git a/.azure-devops/build/steps/windows/before.yml b/.azure-devops/build/steps/windows/before.yml index fcbf444d3..fbb264087 100644 --- a/.azure-devops/build/steps/windows/before.yml +++ b/.azure-devops/build/steps/windows/before.yml @@ -1,3 +1,16 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + # before.yml # install Windows platform dependencies & set environment variables diff --git a/.azure-devops/build/steps/windows/build_hotspot.yml b/.azure-devops/build/steps/windows/build_hotspot.yml index 3883bd02b..f8aafe64d 100644 --- a/.azure-devops/build/steps/windows/build_hotspot.yml +++ b/.azure-devops/build/steps/windows/build_hotspot.yml @@ -1,3 +1,16 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + # build_hotspot.yml # run the ./makejdk-any-platform.sh and upload generated files to artifacts diff --git a/.azure-devops/openjdk-pipelines.yml b/.azure-devops/openjdk-pipelines.yml index 14150e93d..03e74bc70 100644 --- a/.azure-devops/openjdk-pipelines.yml +++ b/.azure-devops/openjdk-pipelines.yml @@ -1,3 +1,16 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + name: "Adoptium-$(JAVA_TO_BUILD)-$(Date:yyyy-MM-dd)" trigger: none diff --git a/.azure-devops/test/jobs/steps/parallel.yml b/.azure-devops/test/jobs/steps/parallel.yml index b87e9f68f..e6fb02788 100644 --- a/.azure-devops/test/jobs/steps/parallel.yml +++ b/.azure-devops/test/jobs/steps/parallel.yml @@ -1,3 +1,16 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + steps: - script: | brew update diff --git a/.azure-devops/test/jobs/steps/test.yml b/.azure-devops/test/jobs/steps/test.yml index b05e15bd8..414578a5e 100644 --- a/.azure-devops/test/jobs/steps/test.yml +++ b/.azure-devops/test/jobs/steps/test.yml @@ -1,3 +1,16 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + steps: - script: | brew update diff --git a/.azure-devops/test/jobs/template.yml b/.azure-devops/test/jobs/template.yml index 868afbb6b..b959ef5f1 100644 --- a/.azure-devops/test/jobs/template.yml +++ b/.azure-devops/test/jobs/template.yml @@ -1,3 +1,15 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** jobs: - job: generate_parallelList_${{ parameters.buildList }} diff --git a/.azure-devops/test/sanity.yml b/.azure-devops/test/sanity.yml index e2fdaf821..9fd3509e2 100644 --- a/.azure-devops/test/sanity.yml +++ b/.azure-devops/test/sanity.yml @@ -1,3 +1,15 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** stages: - stage: Test_openjdk_hs_sanity_functional_x86_64_mac diff --git a/.github/dependabot.yml b/.github/dependabot.yml index afb98ae0c..e228b4a84 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,16 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + version: 2 updates: - package-ecosystem: github-actions diff --git a/.github/labeler.yml b/.github/labeler.yml index a6f5d1366..b83778bc5 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,3 +1,16 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + # Config file used by .github/workflows/labeler.yml # This file matches file/folder changes to labels. See https://github.com/actions/labeler for more information. diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml index 5ffc9263c..1648decbf 100644 --- a/.github/linters/.markdown-lint.yml +++ b/.github/linters/.markdown-lint.yml @@ -1,3 +1,16 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + ########################### ########################### ## Markdown Linter rules ## diff --git a/.github/linters/sun_checks.xml b/.github/linters/sun_checks.xml index 574cb4909..41db8ed31 100644 --- a/.github/linters/sun_checks.xml +++ b/.github/linters/sun_checks.xml @@ -1,4 +1,19 @@ + + diff --git a/.github/linters/suppressed-java.xml b/.github/linters/suppressed-java.xml index 2a82c313e..9c7ae407a 100644 --- a/.github/linters/suppressed-java.xml +++ b/.github/linters/suppressed-java.xml @@ -1,4 +1,19 @@ + + &1 | grep -q '"17.'; then diff --git a/configureBuild.sh b/configureBuild.sh index 745ffd2ad..71906a3e7 100755 --- a/configureBuild.sh +++ b/configureBuild.sh @@ -1,20 +1,17 @@ #!/bin/bash # shellcheck disable=SC1091 - -################################################################################ -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. # -################################################################################ +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** ################################################################################ # diff --git a/cyclonedx-lib/build.xml b/cyclonedx-lib/build.xml index 96ff9ec5c..c10c8b05c 100644 --- a/cyclonedx-lib/build.xml +++ b/cyclonedx-lib/build.xml @@ -1,17 +1,17 @@ - diff --git a/cyclonedx-lib/sign_src/TemurinSignSBOM.java b/cyclonedx-lib/sign_src/TemurinSignSBOM.java index 848f25d00..dd10494e8 100644 --- a/cyclonedx-lib/sign_src/TemurinSignSBOM.java +++ b/cyclonedx-lib/sign_src/TemurinSignSBOM.java @@ -1,17 +1,18 @@ -/** - * # Licensed 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 - * # - * # 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. - * ################################################################################ +/* + * ******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) where distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made + * available under the terms of the Apache Software License 2.0 + * which is available at https://www.apache.org/licenses/LICENSE-2.0. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************** */ + package temurin.sbom; import org.cyclonedx.BomGeneratorFactory; diff --git a/cyclonedx-lib/sign_src/package-info.java b/cyclonedx-lib/sign_src/package-info.java index 1ceedc3ab..22c96bb07 100644 --- a/cyclonedx-lib/sign_src/package-info.java +++ b/cyclonedx-lib/sign_src/package-info.java @@ -1,18 +1,18 @@ /* -################################################################################ -# Licensed 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 -# -# 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. -################################################################################ -*/ + * ******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) where distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made + * available under the terms of the Apache Software License 2.0 + * which is available at https://www.apache.org/licenses/LICENSE-2.0. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************** + */ + /** * Temurin SBOM package. */ diff --git a/cyclonedx-lib/src/temurin/sbom/TemurinGenSBOM.java b/cyclonedx-lib/src/temurin/sbom/TemurinGenSBOM.java index 749c09149..89ca42873 100644 --- a/cyclonedx-lib/src/temurin/sbom/TemurinGenSBOM.java +++ b/cyclonedx-lib/src/temurin/sbom/TemurinGenSBOM.java @@ -1,17 +1,18 @@ -/** -# Licensed 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 -# -# 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. -################################################################################ -*/ +/* + * ******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) where distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made + * available under the terms of the Apache Software License 2.0 + * which is available at https://www.apache.org/licenses/LICENSE-2.0. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************** + */ + package temurin.sbom; import org.cyclonedx.BomGeneratorFactory; diff --git a/cyclonedx-lib/src/temurin/sbom/package-info.java b/cyclonedx-lib/src/temurin/sbom/package-info.java index 1ceedc3ab..22c96bb07 100644 --- a/cyclonedx-lib/src/temurin/sbom/package-info.java +++ b/cyclonedx-lib/src/temurin/sbom/package-info.java @@ -1,18 +1,18 @@ /* -################################################################################ -# Licensed 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 -# -# 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. -################################################################################ -*/ + * ******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) where distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made + * available under the terms of the Apache Software License 2.0 + * which is available at https://www.apache.org/licenses/LICENSE-2.0. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************** + */ + /** * Temurin SBOM package. */ diff --git a/docker-build.sh b/docker-build.sh index df8975732..2e89d182a 100755 --- a/docker-build.sh +++ b/docker-build.sh @@ -1,18 +1,16 @@ #!/bin/bash - -################################################################################ -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. -################################################################################ +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** ################################################################################ # diff --git a/docker/.gitignore b/docker/.gitignore index b25c15b81..e5bd4bc27 100644 --- a/docker/.gitignore +++ b/docker/.gitignore @@ -1 +1,14 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + *~ diff --git a/docker/buildDocker.sh b/docker/buildDocker.sh index 61ce2bba3..28b4f78d5 100755 --- a/docker/buildDocker.sh +++ b/docker/buildDocker.sh @@ -1,4 +1,17 @@ #!/bin/bash +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + set -u BOOTDIR="" diff --git a/docker/dockerfile-generator.sh b/docker/dockerfile-generator.sh index baf907c83..38f1799cc 100755 --- a/docker/dockerfile-generator.sh +++ b/docker/dockerfile-generator.sh @@ -1,4 +1,17 @@ #!/bin/bash +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + # shellcheck disable=SC2129 set -eu @@ -141,17 +154,18 @@ checkJDK() { printPreamble() { echo " # -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# https://www.apache.org/licenses/LICENSE-2.0 +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 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 +# ******************************************************************************** FROM ubuntu:18.04 diff --git a/entitlements.plist b/entitlements.plist index d84f4d9a1..e2cedc170 100644 --- a/entitlements.plist +++ b/entitlements.plist @@ -1,4 +1,19 @@ + + diff --git a/makejdk-any-platform.sh b/makejdk-any-platform.sh index fc7e49cb2..262c6d02e 100755 --- a/makejdk-any-platform.sh +++ b/makejdk-any-platform.sh @@ -1,21 +1,17 @@ #!/bin/bash # shellcheck disable=SC1091 - -################################################################################ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# Licensed 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 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# https://www.apache.org/licenses/LICENSE-2.0 +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 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 +# ******************************************************************************** ################################################################################ # diff --git a/native-build.sh b/native-build.sh index 30c46bf4c..07a8dbfd9 100755 --- a/native-build.sh +++ b/native-build.sh @@ -1,18 +1,16 @@ #!/bin/bash - -################################################################################ -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. -################################################################################ +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** ################################################################################ # diff --git a/sbin/build.sh b/sbin/build.sh index a9143017f..b29c55787 100755 --- a/sbin/build.sh +++ b/sbin/build.sh @@ -1,20 +1,18 @@ #!/bin/bash -# shellcheck disable=SC2155,SC2153,SC2038,SC1091,SC2116,SC2086 - -################################################################################ -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. -################################################################################ +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** +# shellcheck disable=SC2155,SC2153,SC2038,SC1091,SC2116,SC2086 ################################################################################ # # Build OpenJDK - can be called directly but is typically called by diff --git a/sbin/build.template b/sbin/build.template index 053787af3..463fa624a 100644 --- a/sbin/build.template +++ b/sbin/build.template @@ -1,20 +1,5 @@ #!/bin/bash # shellcheck disable=SC1009,SC1056,SC1072,SC1073,SC1054,SC1083,SC2181 - -################################################################################ -# Licensed 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 -# -# 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. -################################################################################ - ################################################################################ # # build.template diff --git a/sbin/common/common.sh b/sbin/common/common.sh index 261e4d08b..03fc8d679 100755 --- a/sbin/common/common.sh +++ b/sbin/common/common.sh @@ -1,20 +1,18 @@ #!/bin/bash -# shellcheck disable=SC2155 - -################################################################################ -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. -################################################################################ +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** +# shellcheck disable=SC2155 # shellcheck disable=SC2153 function setOpenJdkVersion() { local forest_name=$1 diff --git a/sbin/common/config_init.sh b/sbin/common/config_init.sh index 3ee88244f..b5d31c34b 100755 --- a/sbin/common/config_init.sh +++ b/sbin/common/config_init.sh @@ -1,21 +1,18 @@ #!/bin/bash -# shellcheck disable=SC2153,SC2155 - -################################################################################ -# -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. # -################################################################################ +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + +# shellcheck disable=SC2153,SC2155 ################################################################################ # diff --git a/sbin/common/constants.sh b/sbin/common/constants.sh index c02cfb431..5b962aefb 100755 --- a/sbin/common/constants.sh +++ b/sbin/common/constants.sh @@ -1,18 +1,16 @@ #!/bin/bash - -################################################################################ -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# https://www.apache.org/licenses/LICENSE-2.0 +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 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 +# ******************************************************************************** # Version Strings export JDK8_VERSION="jdk8u"; diff --git a/sbin/common/sbom.sh b/sbin/common/sbom.sh index 24fa0b060..2d66db93f 100755 --- a/sbin/common/sbom.sh +++ b/sbin/common/sbom.sh @@ -1,4 +1,17 @@ #!/bin/bash +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + # Create a default SBOM json file: sbomJson createSBOMFile() { local javaHome="${1}" diff --git a/sbin/prepareWorkspace.sh b/sbin/prepareWorkspace.sh index 022a0b297..f235f7eb7 100644 --- a/sbin/prepareWorkspace.sh +++ b/sbin/prepareWorkspace.sh @@ -1,20 +1,18 @@ #!/bin/bash -# shellcheck disable=SC2155,SC1091,SC2196,SC2235 - -################################################################################ -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. -################################################################################ +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** +# shellcheck disable=SC2155,SC1091,SC2196,SC2235 ################################################################################ # # This script prepares the workspace to build (Adoptium) OpenJDK. diff --git a/sbin/sig_check/freemarker.asc b/sbin/sig_check/freemarker.asc index c15976b69..6ec51ac1a 100644 --- a/sbin/sig_check/freemarker.asc +++ b/sbin/sig_check/freemarker.asc @@ -1,3 +1,16 @@ +// ******************************************************************************** +// Copyright (c) 2024 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) where distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made +// available under the terms of the Apache Software License 2.0 +// which is available at https://www.apache.org/licenses/LICENSE-2.0. +// +// SPDX-License-Identifier: Apache-2.0 +// ******************************************************************************** + -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2.0.20 (MingW32) diff --git a/sbin/sig_check/freetype.asc b/sbin/sig_check/freetype.asc index fd32efcab..5b155cba8 100644 --- a/sbin/sig_check/freetype.asc +++ b/sbin/sig_check/freetype.asc @@ -1,3 +1,16 @@ +// ******************************************************************************** +// Copyright (c) 2024 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) where distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made +// available under the terms of the Apache Software License 2.0 +// which is available at https://www.apache.org/licenses/LICENSE-2.0. +// +// SPDX-License-Identifier: Apache-2.0 +// ******************************************************************************** + -----BEGIN PGP PUBLIC KEY BLOCK----- mQGiBD+Z+pwRBACnK1FszJzA033xBE6MVbjhP1DLFNBLwhw+2hcTLOWvcsdbQh74 diff --git a/security/mk-cacerts.sh b/security/mk-cacerts.sh index 5613da2e2..a16eedf5c 100755 --- a/security/mk-cacerts.sh +++ b/security/mk-cacerts.sh @@ -1,17 +1,17 @@ #!/usr/bin/env bash +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# Licensed 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 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. # +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + set -euo pipefail PROGRAM_NAME="${0##*/}" diff --git a/serverTimestamp.properties b/serverTimestamp.properties index 98a69dfb6..f43dee66d 100644 --- a/serverTimestamp.properties +++ b/serverTimestamp.properties @@ -1,3 +1,16 @@ +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + comodaca=http://timestamp.comodoca.com/authenticode globalsign=http://timestamp.globalsign.com/scripts/timstamp.dll isectigo=http://timestamp.sectigo.com diff --git a/sign.sh b/sign.sh index bd381c2c5..fa86d321a 100755 --- a/sign.sh +++ b/sign.sh @@ -1,19 +1,17 @@ #!/bin/bash # shellcheck disable=SC1091 - -################################################################################ -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# https://www.apache.org/licenses/LICENSE-2.0 +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 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 +# ******************************************************************************** set -eu diff --git a/signalhandler.sh b/signalhandler.sh index bcb04f2e0..bbbcb316b 100755 --- a/signalhandler.sh +++ b/signalhandler.sh @@ -1,20 +1,16 @@ #!/bin/bash - -################################################################################ -# -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. # -################################################################################ +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** exit_script() { if [[ -z ${KEEP_CONTAINER} ]] ; then diff --git a/test/functional/buildAndPackage/build.xml b/test/functional/buildAndPackage/build.xml index f7d058096..0deb81be9 100644 --- a/test/functional/buildAndPackage/build.xml +++ b/test/functional/buildAndPackage/build.xml @@ -1,17 +1,17 @@ - diff --git a/test/functional/buildAndPackage/playlist.xml b/test/functional/buildAndPackage/playlist.xml index e5cf5522b..39aab5453 100644 --- a/test/functional/buildAndPackage/playlist.xml +++ b/test/functional/buildAndPackage/playlist.xml @@ -1,16 +1,17 @@ diff --git a/test/functional/buildAndPackage/src/net/adoptium/test/BundledFreetypeTest.java b/test/functional/buildAndPackage/src/net/adoptium/test/BundledFreetypeTest.java index a6e103201..3ecb4fbf7 100644 --- a/test/functional/buildAndPackage/src/net/adoptium/test/BundledFreetypeTest.java +++ b/test/functional/buildAndPackage/src/net/adoptium/test/BundledFreetypeTest.java @@ -1,15 +1,16 @@ /* - * Licensed 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 + * ******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation * - * https://www.apache.org/licenses/LICENSE-2.0 + * See the NOTICE file(s) where distributed with this work for additional + * information regarding copyright ownership. * - * 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. + * This program and the accompanying materials are made + * available under the terms of the Apache Software License 2.0 + * which is available at https://www.apache.org/licenses/LICENSE-2.0. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************** */ package net.adoptium.test; diff --git a/test/functional/buildAndPackage/src/net/adoptium/test/CudaEnabledTest.java b/test/functional/buildAndPackage/src/net/adoptium/test/CudaEnabledTest.java index 9f63cf7fe..49bee5863 100644 --- a/test/functional/buildAndPackage/src/net/adoptium/test/CudaEnabledTest.java +++ b/test/functional/buildAndPackage/src/net/adoptium/test/CudaEnabledTest.java @@ -1,3 +1,18 @@ +/* + * ******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) where distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made + * available under the terms of the Apache Software License 2.0 + * which is available at https://www.apache.org/licenses/LICENSE-2.0. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************** + */ + package net.adoptium.test; import java.io.BufferedReader; diff --git a/test/functional/buildAndPackage/src/net/adoptium/test/FeatureTests.java b/test/functional/buildAndPackage/src/net/adoptium/test/FeatureTests.java index ff8aae312..baeca9b79 100644 --- a/test/functional/buildAndPackage/src/net/adoptium/test/FeatureTests.java +++ b/test/functional/buildAndPackage/src/net/adoptium/test/FeatureTests.java @@ -1,15 +1,16 @@ /* - * Licensed 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 + * ******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation * - * https://www.apache.org/licenses/LICENSE-2.0 + * See the NOTICE file(s) where distributed with this work for additional + * information regarding copyright ownership. * - * 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. + * This program and the accompanying materials are made + * available under the terms of the Apache Software License 2.0 + * which is available at https://www.apache.org/licenses/LICENSE-2.0. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************** */ package net.adoptium.test; diff --git a/test/functional/buildAndPackage/src/net/adoptium/test/JdkPlatform.java b/test/functional/buildAndPackage/src/net/adoptium/test/JdkPlatform.java index de6dbcb2b..a9c8b5aa2 100644 --- a/test/functional/buildAndPackage/src/net/adoptium/test/JdkPlatform.java +++ b/test/functional/buildAndPackage/src/net/adoptium/test/JdkPlatform.java @@ -1,15 +1,16 @@ /* - * Licensed 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 + * ******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation * - * https://www.apache.org/licenses/LICENSE-2.0 + * See the NOTICE file(s) where distributed with this work for additional + * information regarding copyright ownership. * - * 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. + * This program and the accompanying materials are made + * available under the terms of the Apache Software License 2.0 + * which is available at https://www.apache.org/licenses/LICENSE-2.0. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************** */ package net.adoptium.test; diff --git a/test/functional/buildAndPackage/src/net/adoptium/test/JdkVersion.java b/test/functional/buildAndPackage/src/net/adoptium/test/JdkVersion.java index 302c72e1e..deda37fa3 100644 --- a/test/functional/buildAndPackage/src/net/adoptium/test/JdkVersion.java +++ b/test/functional/buildAndPackage/src/net/adoptium/test/JdkVersion.java @@ -1,15 +1,16 @@ /* - * Licensed 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 + * ******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation * - * https://www.apache.org/licenses/LICENSE-2.0 + * See the NOTICE file(s) where distributed with this work for additional + * information regarding copyright ownership. * - * 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. + * This program and the accompanying materials are made + * available under the terms of the Apache Software License 2.0 + * which is available at https://www.apache.org/licenses/LICENSE-2.0. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************** */ package net.adoptium.test; diff --git a/test/functional/buildAndPackage/src/net/adoptium/test/StreamUtils.java b/test/functional/buildAndPackage/src/net/adoptium/test/StreamUtils.java index 1e05e4eab..5e3c79352 100644 --- a/test/functional/buildAndPackage/src/net/adoptium/test/StreamUtils.java +++ b/test/functional/buildAndPackage/src/net/adoptium/test/StreamUtils.java @@ -1,15 +1,16 @@ /* - * Licensed 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 + * ******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation * - * https://www.apache.org/licenses/LICENSE-2.0 + * See the NOTICE file(s) where distributed with this work for additional + * information regarding copyright ownership. * - * 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. + * This program and the accompanying materials are made + * available under the terms of the Apache Software License 2.0 + * which is available at https://www.apache.org/licenses/LICENSE-2.0. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************** */ package net.adoptium.test; diff --git a/test/functional/buildAndPackage/src/net/adoptium/test/VendorPropertiesTest.java b/test/functional/buildAndPackage/src/net/adoptium/test/VendorPropertiesTest.java index 2522215a2..c7fa9d343 100644 --- a/test/functional/buildAndPackage/src/net/adoptium/test/VendorPropertiesTest.java +++ b/test/functional/buildAndPackage/src/net/adoptium/test/VendorPropertiesTest.java @@ -1,15 +1,16 @@ /* - * Licensed 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 + * ******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation * - * https://www.apache.org/licenses/LICENSE-2.0 + * See the NOTICE file(s) where distributed with this work for additional + * information regarding copyright ownership. * - * 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. + * This program and the accompanying materials are made + * available under the terms of the Apache Software License 2.0 + * which is available at https://www.apache.org/licenses/LICENSE-2.0. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************** */ package net.adoptium.test; diff --git a/test/functional/buildAndPackage/src/net/adoptium/test/VerifyCACertsTest.java b/test/functional/buildAndPackage/src/net/adoptium/test/VerifyCACertsTest.java index f64fd14df..13edfc1bd 100644 --- a/test/functional/buildAndPackage/src/net/adoptium/test/VerifyCACertsTest.java +++ b/test/functional/buildAndPackage/src/net/adoptium/test/VerifyCACertsTest.java @@ -1,15 +1,16 @@ /* - * Licensed 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 + * ******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation * - * https://www.apache.org/licenses/LICENSE-2.0 + * See the NOTICE file(s) where distributed with this work for additional + * information regarding copyright ownership. * - * 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. + * This program and the accompanying materials are made + * available under the terms of the Apache Software License 2.0 + * which is available at https://www.apache.org/licenses/LICENSE-2.0. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************** */ package net.adoptium.test; diff --git a/test/functional/buildAndPackage/src/net/adoptium/test/package-info.java b/test/functional/buildAndPackage/src/net/adoptium/test/package-info.java index 1a0867fd3..4d6d87b73 100644 --- a/test/functional/buildAndPackage/src/net/adoptium/test/package-info.java +++ b/test/functional/buildAndPackage/src/net/adoptium/test/package-info.java @@ -1,15 +1,16 @@ /* - * Licensed 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 + * ******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation * - * https://www.apache.org/licenses/LICENSE-2.0 + * See the NOTICE file(s) where distributed with this work for additional + * information regarding copyright ownership. * - * 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. + * This program and the accompanying materials are made + * available under the terms of the Apache Software License 2.0 + * which is available at https://www.apache.org/licenses/LICENSE-2.0. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************** */ /** diff --git a/test/functional/buildAndPackage/testng.xml b/test/functional/buildAndPackage/testng.xml index bf53e6c2b..c7e570334 100644 --- a/test/functional/buildAndPackage/testng.xml +++ b/test/functional/buildAndPackage/testng.xml @@ -1,15 +1,16 @@ diff --git a/test/system/reproducibleCompare/build.xml b/test/system/reproducibleCompare/build.xml index 723c048db..1e6199d4e 100644 --- a/test/system/reproducibleCompare/build.xml +++ b/test/system/reproducibleCompare/build.xml @@ -1,17 +1,17 @@ - diff --git a/test/system/reproducibleCompare/linux_repro_build_compare.sh b/test/system/reproducibleCompare/linux_repro_build_compare.sh index f6dca6e9b..1e310ef6a 100755 --- a/test/system/reproducibleCompare/linux_repro_build_compare.sh +++ b/test/system/reproducibleCompare/linux_repro_build_compare.sh @@ -1,16 +1,16 @@ #!/bin/sh -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. -################################################################################ +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** # This script examines the given SBOM metadata file, and then builds the exact same binary # and then compares with the Temurin JDK for the same build version, or the optionally supplied TARBALL_URL. diff --git a/test/system/reproducibleCompare/playlist.xml b/test/system/reproducibleCompare/playlist.xml index ba97ae52e..159c25398 100644 --- a/test/system/reproducibleCompare/playlist.xml +++ b/test/system/reproducibleCompare/playlist.xml @@ -1,16 +1,17 @@ diff --git a/tooling/build_autotriage/autotriage_regexes.sh b/tooling/build_autotriage/autotriage_regexes.sh index 2cdd8cf89..aed190700 100644 --- a/tooling/build_autotriage/autotriage_regexes.sh +++ b/tooling/build_autotriage/autotriage_regexes.sh @@ -1,18 +1,16 @@ #!/bin/bash -################################################################################ -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. -################################################################################ - +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** ################################################################################ # # This script produces arrays of regular expressions that match a type of failure diff --git a/tooling/build_autotriage/build_autotriage.sh b/tooling/build_autotriage/build_autotriage.sh index 93edf08b4..28be1d9b0 100644 --- a/tooling/build_autotriage/build_autotriage.sh +++ b/tooling/build_autotriage/build_autotriage.sh @@ -1,18 +1,17 @@ #!/bin/bash # shellcheck disable=SC1091 -################################################################################ -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. -################################################################################ +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** ################################################################################ # diff --git a/tooling/common_logging.sh b/tooling/common_logging.sh index 493505e4f..ecd390774 100755 --- a/tooling/common_logging.sh +++ b/tooling/common_logging.sh @@ -1,4 +1,17 @@ #!/bin/sh +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + # # Utility functions for logging. # diff --git a/tooling/release_download_test.sh b/tooling/release_download_test.sh index 16f17fc00..d6380288c 100755 --- a/tooling/release_download_test.sh +++ b/tooling/release_download_test.sh @@ -1,4 +1,17 @@ #!/bin/bash +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + # # Adoptium download and SBOM validation utility # Takes a tagged build as a parameter and downloads it from the diff --git a/tooling/reproducible/comparable_patch.sh b/tooling/reproducible/comparable_patch.sh index b6b8b8312..8e1ca2786 100755 --- a/tooling/reproducible/comparable_patch.sh +++ b/tooling/reproducible/comparable_patch.sh @@ -1,17 +1,17 @@ #!/bin/bash # shellcheck disable=SC1091 -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. -############################################################################## +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** source repro_common.sh diff --git a/tooling/reproducible/linux_repro_build_compare.sh b/tooling/reproducible/linux_repro_build_compare.sh index 17c1b9bcb..516935e69 100755 --- a/tooling/reproducible/linux_repro_build_compare.sh +++ b/tooling/reproducible/linux_repro_build_compare.sh @@ -1,16 +1,16 @@ #!/bin/sh -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. -################################################################################ +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** # This script examines the given SBOM metadata file, and then builds the exact same binary # and then compares with the Temurin JDK for the same build version, or the optionally supplied TARBALL_URL. diff --git a/tooling/reproducible/repro_common.sh b/tooling/reproducible/repro_common.sh index 7a792b1b3..454922603 100755 --- a/tooling/reproducible/repro_common.sh +++ b/tooling/reproducible/repro_common.sh @@ -1,17 +1,17 @@ #!/bin/bash # shellcheck disable=SC2086 -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. -############################################################################### +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** # Expand JDK jmods & zips to process binaries within function expandJDK() { diff --git a/tooling/reproducible/repro_compare.sh b/tooling/reproducible/repro_compare.sh index 42484ca05..320618c24 100755 --- a/tooling/reproducible/repro_compare.sh +++ b/tooling/reproducible/repro_compare.sh @@ -1,18 +1,18 @@ #!/bin/bash -# shellcheck disable=SC1091 -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. -################################################################################ -source repro_common.sh +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + +# shellcheck disable=SC1091source repro_common.sh BLD_TYPE1="$1" JDK_DIR1="$2" diff --git a/tooling/reproducible/repro_process.sh b/tooling/reproducible/repro_process.sh index 7638da631..7658b25a8 100755 --- a/tooling/reproducible/repro_process.sh +++ b/tooling/reproducible/repro_process.sh @@ -1,18 +1,18 @@ #!/bin/bash -# shellcheck disable=SC1091 -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. -################################################################################ -source repro_common.sh +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + +# shellcheck disable=SC1091source repro_common.sh JDK_DIR="$1" OS="$2" diff --git a/tooling/reproducible/windows_build_as_temurin.sh b/tooling/reproducible/windows_build_as_temurin.sh index 20cb0539e..fd8f0036c 100755 --- a/tooling/reproducible/windows_build_as_temurin.sh +++ b/tooling/reproducible/windows_build_as_temurin.sh @@ -1,16 +1,16 @@ #!/bin/bash -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. -################################################################################ +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** set -e diff --git a/tooling/reproducible/windows_repro_build_compare.sh b/tooling/reproducible/windows_repro_build_compare.sh index c24bbe992..eada1575f 100644 --- a/tooling/reproducible/windows_repro_build_compare.sh +++ b/tooling/reproducible/windows_repro_build_compare.sh @@ -1,16 +1,16 @@ #!/bin/bash -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. -################################################################################ +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** # This script examines the given SBOM metadata file, and then builds the exact same binary # and then compares with the Temurin JDK for the same build version, or the optionally supplied TARBALL_URL. diff --git a/tooling/src/c/WindowsUpdateVsVersionInfo.c b/tooling/src/c/WindowsUpdateVsVersionInfo.c index e3f6aec2c..b854726bf 100644 --- a/tooling/src/c/WindowsUpdateVsVersionInfo.c +++ b/tooling/src/c/WindowsUpdateVsVersionInfo.c @@ -1,17 +1,18 @@ -/** -# Licensed 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 -# -# 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. -################################################################################ -*/ +/* + * ******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) where distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made + * available under the terms of the Apache Software License 2.0 + * which is available at https://www.apache.org/licenses/LICENSE-2.0. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************** + */ + // clang-format off /* jscpd:ignore-start */ diff --git a/tooling/src/java/temurin/tools/BinRepl.java b/tooling/src/java/temurin/tools/BinRepl.java index a593c4e8f..b42605d8c 100644 --- a/tooling/src/java/temurin/tools/BinRepl.java +++ b/tooling/src/java/temurin/tools/BinRepl.java @@ -1,15 +1,18 @@ -/** - * Licensed 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 - * 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. +/* + * ******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) where distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made + * available under the terms of the Apache Software License 2.0 + * which is available at https://www.apache.org/licenses/LICENSE-2.0. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************** */ + package temurin.tools; import java.io.FileOutputStream; diff --git a/tooling/src/java/temurin/tools/package-info.java b/tooling/src/java/temurin/tools/package-info.java index 3e22d3f4a..9ddad4cc9 100644 --- a/tooling/src/java/temurin/tools/package-info.java +++ b/tooling/src/java/temurin/tools/package-info.java @@ -1,18 +1,18 @@ /* -################################################################################ -# Licensed 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 -# -# 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. -################################################################################ -*/ + * ******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) where distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made + * available under the terms of the Apache Software License 2.0 + * which is available at https://www.apache.org/licenses/LICENSE-2.0. + * + * SPDX-License-Identifier: Apache-2.0 + * ******************************************************************************** + */ + /** * temurin.tools package. */ diff --git a/tooling/strace_analysis.sh b/tooling/strace_analysis.sh index c0fc16cdd..39440d8a1 100755 --- a/tooling/strace_analysis.sh +++ b/tooling/strace_analysis.sh @@ -1,18 +1,17 @@ #!/bin/bash # shellcheck disable=SC1091 -################################################################################ -# Licensed 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 +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation # -# https://www.apache.org/licenses/LICENSE-2.0 +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. # -# 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. -################################################################################ +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** ################################################################################ # diff --git a/tooling/validateSBOMcontent.sh b/tooling/validateSBOMcontent.sh index a48b4fa6a..b9621e5c3 100755 --- a/tooling/validateSBOMcontent.sh +++ b/tooling/validateSBOMcontent.sh @@ -1,4 +1,17 @@ #!/bin/sh +# ******************************************************************************** +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) where distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made +# available under the terms of the Apache Software License 2.0 +# which is available at https://www.apache.org/licenses/LICENSE-2.0. +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************** + [ "$VERBOSE" = "true" ] && set -x if [ $# -lt 3 ]; then echo "Usage: $0 file.json majorversion fullversion"