Skip to main content

TRG 7.02 - License and Copyright header

StatusCreatedPost-History
Active25-Apr-2024Updates for CC-BY-4.0 license
Active24-Apr-2024Update of the year information in copyright header
Active13-Apr-2023Moved from OSS Development

Why

Eclipse Tractus-X is an open source project hosted by the Eclipse Foundation licensed under the Apache License 2.0 (Apache-2.0). For non-code the default license is the Creative Commons Attribution 4.0 International (CC-BY-4.0).

The legal obligations of the content must be observed in all forms of which the content is available.

This page contains information about legal documentation requirements in your files. The source of truth is always the Eclipse Foundation Project Handbook.

info

The requirements described here must be met for each contribution.

Description

Where possible, all source code, property files, and metadata files (including application, test, and generated source code as well as other types of files such as XML, HTML, etc.) should contain appropriate copyright and license notices as well as information on each contribution. (From the Handbook#ip-copyright-headers)

It is recommended to use the generic copyright header:

Copyright (c) {year} Contributors to the Eclipse Foundation

Note:

  • The {year} is the year of the initial creation.
  • The contributors are identified via the GitHub commit logs (see NOTICE file)

Additionally copyright lines can be added (one or more times) to list specific copyright owner(s):

Copyright (c) 202x {owner}[ and others]

Examples:

  1. Copyright (c) 2021 Jane Doe
    • Copyright: Jane Doe
  2. Copyright (c) 2022 Jane Doe and others
    • others: somebody has made minor changes (e.g. fixed typos)

Do not remove the general line "Copyright (c) 202x Contributors to the Eclipse Foundation".

License Header

Never change the license section, except for the comment characters for the appropriate language.

Example for Apache-2.0 (Java)

/********************************************************************************
* Copyright (c) 2023 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) 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 License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

Example for CC-BY-4.0

#######################################################################
# Copyright (c) 2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This work is made available under the terms of the
# Creative Commons Attribution 4.0 International (CC-BY-4.0) license,
# which is available at
# https://creativecommons.org/licenses/by/4.0/legalcode.
#
# SPDX-License-Identifier: CC-BY-4.0
#######################################################################
tip

Use your IDE's template mechanism to add the text automatically when you create new files.