I want to fork a project licensed under the Apache 2.0 license. Section 4.(b) states that:

You must cause any modified files to carry prominent notices stating that You changed the files

The original source code files do not contain any license header. So when I modify a file, how should I format the prominent notice? Is it enough to say

(c) 2000-2021 OriginalProjectName contributors
(c) 2021 My Name

Some more context: Each file in the original project has been modified by 1-4 people, depending on the file.

What should be done if I merge a patch someone else sends me? Should I add their name to the license header too?


Yes, the NOTICE file needs to include information about your modifications and information about the copyright holders that contributed to the code (all of the code, even the old parts). If it does not yet exist then you should consider adding one.

It is good practice in Apache projects to have a NOTICE file, examples how they can look can be found everywhere, for example in the SPARK project. But if it is only a few lines of information then you can keep that in each file with the license header.

You should read the entire Apache license and if you have questions consult the FAQ.

When someone sends code or patches to you and you include that in the project, then this should be properly recognized and recorded.

Please consider using the SPDX format for your license header.

A last comment: please be generous in giving credits to other contributors to your project, in the same way as you would expect others to honor your contributions in their projects.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.