1

I'd like to use the MIT License for a project I'm working on. Most of the files in the repository are mine but 1 had to be copied from another open-source project (also under the MIT License).

What should I do to indicate that the copyright notice in the license excludes certain files that I did not write?

3
  • 7
    Just explain in the license somewhere. "Portions of this software are copyright [author], also licensed under MIT." Commented Jun 4, 2016 at 19:43
  • Which MIT license? “This license is sometimes called the MIT license, but that term is misleading, since MIT has used many licenses for software.” — gnu.org/licenses/license-list.en.html Commented Jun 4, 2016 at 20:20
  • This one: opensource.org/licenses/MIT
    – takteek
    Commented Jun 4, 2016 at 20:32

1 Answer 1

2

You have several options:

1) The most robust solution is to explicitly state the copyright license in every file. It can be a single line at the top:

// Copyright (c) 2016 Your Name. Licensed under the MIT license (see LICENSE.txt).

This removes any doubt about the licensing and copyright of any given file.

For the third-party software, do the same (but pointing to separate LICENSE-FOO.txt file), or just include the entire license text in a comment blurb at the top.

2) Alternatively, you can add this line to the top of your LICENSE.txt:

Except where otherwise stated, this code is:

and then add a blurb stating otherwise to the third-party software files (as in option 1).

3) Finally, due to the wording of the MIT license, you can actually merge the licenses of multiple MIT licensed works into a single MIT license with multiple Copyright statements:

Copyright (c) 2016 Foo
Copyright (c) 2016 Bar

Permission is hereby granted, etc.

Just make sure to preserve the original Copyright statement(s) verbatim, and make sure that the rest of the two MIT licenses texts are actually identical word-for-word (unfortunately, people sometimes "tweak" the text, meaning the "MIT license" is not longer actually the real MIT license).

While legal, this can be confusing, since it's not clear which files originated from which author.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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