I am creating a game and want to release the code under a copyleft license (GPL 2 or 3). So far, so good, but there are multiple MIT-licensed library dependencies.

Can I still release my code under GPL? Is the restriction that the MIT code itself is not part of the repository (e.g. separate download)?

1 Answer 1


Yes, you can release your code under the GPL.

The MIT license is compatible with the GPL: you can combine MIT-licensed code with GPL'ed code, as long as the result is licensed under the GPL. This is possible because the MIT license explicitly allows you to sublicense the code (i.e. republish with a completely different license), and only requires you to keep the copyright and license notice intact.

Permissive licences such as the MIT license or Apache v2 license are often used for code that is intended to be available as widely as possible, with as few restrictions as possible for direct users (i.e. other programmers). Such code can be incorporated in proprietary and copyleft projects.

  • 4
    If you're modifying the original library code, it would be nice if you still licence this part of the code as MIT. You have no obligation, but the library programmers will be thankful to be able to use your contribution, if they want to.
    – allo
    May 22, 2017 at 20:15

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.