I'm writing a library that I want to use in my GPL3 main project and I wonder if I can license the library using the MIT license.

  • Are you writing the library from scratch? How about the rest of the project?
    – MadHatter
    Jul 30 '20 at 5:36
  • @MadHatter the library is from scratch but the project have external libraries that are MIT licensed aswell
    – Ali
    Jul 30 '20 at 10:05

Yes, you can use an MIT-licensed library in an GPL-licensed application.

The MIT license is a permissive license that is compatible with the GPL license, so there is no problem at all.

When the library is used in the context of the GPL application, the GPL terms and conditions also apply to the library, but when the library is used independently from the GPL code, the MIT license is in full effect.

  • Thanks i that what i was looking for!
    – Ali
    Jul 30 '20 at 10:05

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.