Different source codes come with varying licensing rights and terms, which may limit how the source code can be used, reused, or distributed, often leading to confusion. As a best practice, all contract source code holders, publishers, and authors are encouraged to specify the associated license for their verified contract source code provided.Below is a summarized list of the most common licensing schemes available for open-source projects, with 'No License' being the most restrictive and 'The Unlicense' being completely unencumbered.
When you create a work (including code), it is automatically safeguarded by exclusive copyright unless a specific license is provided. Without a license, no one is authorized to duplicate, distribute, or alter your work without risking legal action or removal. Denying usage of your code might not reflect what you intend by "no license." An open-source license (such as those listed below from #3 to #12) permits the reuse of your code while retaining copyright.
A license that imposes no limitations at all, dedicating works to the public domain. Works released under this license, including modifications and derivative works, can be distributed with different terms and without the original source code.
A brief and straightforward permissive license that only requires the retention of copyright and license notices. Works licensed under this agreement, including modifications or expanded works, can be distributed under different terms and without including the source code.
The GNU GPL is the most commonly used free software license, requiring a strong copyleft clause. When distributing derived works, the source code must be made accessible under the same licensing terms. There are several variations of the GNU GPL, each with distinct obligations.
This copyleft license imposes conditions that require the availability of complete source code for both the licensed works and any modifications, including larger works using the licensed work, under the same terms. Copyright and license notices must be retained, and contributors must grant explicit patent rights.
GNU Lesser General Public License v2.1 (GNU LGPLv2.1)
Mainly applied to software libraries, the GNU LGPL demands that derivative works be licensed under the same terms, but works that merely link to the library are exempt from this requirement. There are two frequently used versions of the GNU LGPL.
GNU Lesser General Public License v3.0 (GNU LGPLv3)
The permissions granted by this copyleft license require that the complete source code of licensed works and modifications be available under the same license or the GNU GPLv3. Copyright and license notices must be preserved, and contributors must provide an express grant of patent rights. However, larger works utilizing the licensed work through its interfaces may be distributed under different terms and without source code for the larger work.
A permissive license similar to the BSD 2-Clause License but with an additional clause that prohibits the use of the project name or its contributors to promote derivative products without prior written consent.
This weak copyleft license requires that the source code of licensed files and their modifications be made available under the same terms (or in some cases, one of the GNU licenses). Copyright and license notices must be preserved, and contributors must provide explicit patent rights. However, larger works using the licensed work may be distributed under different terms and without source code for files added in the larger work.
OSL 3.0 is a copyleft license that does not require reciprocal licensing for linked works. It also includes an express patent rights grant from contributors to users and has a termination clause that activates if a user files a patent infringement lawsuit.
A permissive license where the main conditions focus on the preservation of copyright and license notices. Contributors must explicitly grant patent rights. Works, modifications, and larger works may be distributed under different terms and without source code.
This strong copyleft license requires that the complete source code of both licensed works and modifications, including larger works using the licensed work, be made available under the same license. Copyright and license notices must be preserved, and contributors grant explicit patent rights. Additionally, when a modified version is used to offer a service over a network, the complete source code of that version must be made available.
The BSL is designed to allow free and open usage for a wide range of use cases, requiring a commercial license only from those using the software in a production environment, typically where significant value is generated for a business.