This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Copyright and License Notices in Files

How to add copyright and license notices to source files.

    Copyright arises automatically when a work is created. To let others use it, you must grant a license. Because most open source licenses require a copyright notice, include a copyright notice and license identifier in every source file SK Telecom releases. The notation follows the REUSE standard.

    Add the following to the top of each source file.

    SPDX-FileCopyrightText: Copyright {year} SK TELECOM CO., LTD.
    

    License Identifier

    Find the identifier in the SPDX License List and add it at the top of the file.

    SPDX-License-Identifier: Apache-2.0
    

    license-list

    Automation Tools

    For many files, apply notices in bulk. To generate REUSE-standard SPDX tags (SPDX-FileCopyrightText, SPDX-License-Identifier), use reuse annotate from the REUSE tools.

    $ reuse annotate --copyright "SK TELECOM CO., LTD." --license Apache-2.0 [filename]
    

    addlicense inserts a license header by default; use the -s option for the SPDX short form.

    $ addlicense -s -c "SK TELECOM CO., LTD." -l apache [filename]
    

    Example for applying to Java files in bulk:

    $ find . -type f -name \*.java -exec addlicense -s -c "SK TELECOM CO., LTD." -l apache {} \;