16
There are several software licenses around the world, but I have come across a problem that may sometimes even reach the level legal. And that wouldn’t be very good for my project.
My software is licensed under the MIT license, so far so good, but I would like to include snippets (or whole parts) of software that are under the GPL license.
Under the GPL license:
You are allowed to sell copies of the modified program commercially, but only under the Terms of the GNU GPL. Thus, for instance, you must make the source code available to the users of the program as described in the GPL, and they must be allowed to redistribute and Modify it as described in the GPL.
These Requirements are the condition for including the GPL-covered code you Received in a program of your Own.
The excerpt says I need to include the code for users, which I already do, along with the MIT license.
But part of that code is under the GPL license, where should I say that such an excerpt is under GP` and that it is not originally mine? I can do this?
P.S: If possible a practical and simple example.
P.S 2: That goes for package manager also, I can include a GPL file through packages.json
? (Poser, npm, etc)
That one reply of Soen can help.
– Lucas Lima
@Guilhermenascimento I’m using GPL-licensed classes, which are being included with the repository to make life easier.
– Olimon F.
Yes I understand this Olimon, what I mean is that some classes you can write under one license and other classes under another license and the complete software that uses these classes (for example Helper class, Connection, Webservice, etc.) can be written in another license yet. Sorry if I didn’t make myself clear initially, I hope it helps.
– Guilherme Nascimento
@Guilhermenascimento that last comment was and made everything clearer, thank you very much :)
– Olimon F.
One thing, I don’t know what kind of software and language you are using, but I consist in
C/C++
write the classes in separate files, for examplehelper.c
andhelper.h
are written under the MIT license and are in a folder called for example "include", whereas the files that are written under the proprietary license (usually code that makes the company rules) I consist of putting in a folder called "model", in other words, try to avoid mixing different license codes in the same file :) Good luck Olimon– Guilherme Nascimento