Let's say I write some code, which we'll call X. It uses some GPL code, let's call it library Y. Clearly I would have to release X with a GPL license. That's fine. My question is, can I additionally release X under a license such as MIT, so that if someone only wants X but not Y they don't need to use it with the GPL?
YES, you can release your source code under any license you wish. You have that right under US copyright law.
However, if you incorporate any GPL source code within your source code (or distribute with any GPL code), you must use the GPL license for the entire work. That's because you have to agree to their license to use their code.
BTW. I'm not an attorney.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With