Taking care

How to choose an open source license

Publishing a project without clearly indicating which license applies to it prevents anyone from benefiting from it. Choosing a proper license for an open source software will take only a minute if you consult a cheat sheet officially curated by GitHub.

Choose an open source license that best represents your intentions

The Choose an open source license tool presents a simple set of available options right on the landing page:

To get a clear license comparison, you can use one of the two cheat sheets available:

  • Licenses that neatly compares permissions, conditions and limitations:

Add a license file directly in your GitHub repository

The license file can be easily added even if the project has already been published. Go to your project repository and follow the steps listed below:

  • Select the Add file → Create new file option
  • Type the file name then select the Choose a license template option:
  • Next, select a license from the provided list and commit the changes:

The license is now visible in the About section of your project:

Furthermore, when you browse a list of repositories you can also see their licenses:

Common misconceptions about the lack of a license

The absence of a license does not constitute a permission for unlimited use of the software. E.g. when more than one person contributes to the project, the copyrights blocks usage and modification of the part created by other contributor making cooperation legally impossible. If you want to remove all restrictions, use the Unlicese – it includes a limitation of liability and explicitly states that it does not provide any warranty. Therefore, it takes away all obstructions from using your creation and protects you from being liable in case the software causes damages.

The lack of a license doesn’t explicitly mean that no one has any rights to your software. E.g. when you share your project in a public repository on GitHub, you have to accept its Terms of Service which grants others the right to view and fork your work. What’s more, the copyrighted works can also be used without a license from the copyright owner under limitations and exceptions to copyright.

Learn more on choosing an open source license

Spending some time to pick a license is just another form of applying best practices and taking care about your daily work. You can find additional information on the subject by browsing the following links:

Photo by Julyo Saenz from Pexels

little_pinecone

Recent Posts

Simplify the management of user roles in Spring Boot

Spring Security allows us to use role-based control to restrict access to API resources. However,…

3 years ago

Create a custom annotation to configure Spring Boot tests

A custom annotation in Spring Boot tests is an easy and flexible way to provide…

3 years ago

Keycloak with Spring Boot #4 – Simple guide for roles and authorities

Delegating user management to Keycloak allows us to better focus on meeting the business needs…

3 years ago

Keycloak with Spring Boot #3 – How to authorize requests in Swagger UI

Swagger offers various methods to authorize requests to our Keycloak secured API. I'll show you…

3 years ago

Keycloak with Spring Boot #2 – Spring Security instead of Keycloak in tests

Configuring our Spring Boot API to use Keycloak as an authentication and authorization server can…

3 years ago

Keycloak with Spring Boot #1 – Configure Spring Security with Keycloak

Keycloak provides simple integration with Spring applications. As a result, we can easily configure our…

3 years ago