Can I bundle MIT licensed components in a Apache 2.0 licensed project?
<p>I am creating a project that I would like to open source and license under the Apache 2.0 License. The project will come with a bundled version of an open source component which is licensed under the MIT license.</p>

<p>Can I bundle MIT licensed components in a Apache 2.0 licensed project?</p>

<p>I would also be interested in an explanation on why the answer is yes or no.</p>

<p>I realize there's already an answer, but I'd like to go into more detail.</p>

<p>There are generally two kinds of open source software licenses: <em><a href="https://en.wikipedia.org/wiki/Permissive_free_software_licence" rel="noreferrer">permissive</a></em> and <em><a href="https://en.wikipedia.org/wiki/Copyleft" rel="noreferrer">copyleft</a></em> (the latter sometimes called <em>viral</em>).</p>

<p>Both are intended to allow people to freely use, modify, and redistribute a work while ensuring the original author gets credit. This contrasts with releasing your work into the public domain, which would allow anyone do literally anything, even claim to be the author.</p>

<p>The difference is that permissive licenses allow you to re-license your derivative works however you like, while copyleft licenses require your derivatives to be licensed under the same license (hence the term viral). The reasons you'd choose either one are philosophical and political and beyond the scope of this answer.</p>

<p>Both the Apache License and the MIT license are permissive, so incorporating MIT licensed code into your Apache licensed project is certainly allowed. Just be sure to attribute the original author for the parts your incorporated and include a copy of the MIT License terms, as required by the license. Go ahead and read it to make sure you get all the details right; it's fairly short and easy for a layperson to comprehend.</p>

<p>Yep you can.</p>

<p>The MIT license is a very simple, permissive license, that is compatible with just about any open source license you can think of. The only requirements that it holds are a disclaimer of warranty and liability, and attribution.</p>

<p>Since the MIT license is compatible with the Apache 2.0 license (which is also a very permissive license), you can bundle those components together under the Apache license.</p>

licensing software open-source-software