GitPedia

Java solid examples

Learn SOLID principles by examples in Java

From CodelyTV·Updated May 5, 2026·View on GitHub·

This is a repository intended to serve as illustrative examples for the course ["Principios SOLID Aplicados" (Spanish)](https://pro.codely.tv/library/principios-solid-aplicados/77070/about/?utm_source=github&utm_medium=social&utm_campaign=java-solid-examples). The project is written primarily in Java, distributed under the MIT License license, first published in 2018. Key topics include: codely, codelytv, examples, gradle, java.

☕⚛ SOLID principles examples in Java

<img src="http://codely.tv/wp-content/uploads/2016/05/cropped-logo-codelyTV.png" align="left" width="192px" height="192px"/> <img align="left" width="0" height="192px" hspace="10"/>

⚛ Learn SOLID principles by examples

CodelyTV
Workflow Status

ℹ️ Introduction

This is a repository intended to serve as illustrative examples for the course "Principios SOLID Aplicados" (Spanish).

🏁 How To Start

  1. Install Java 8: brew cask install corretto8
  2. Set it as your default JVM: export JAVA_HOME='/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home'
  3. Clone this repository: git clone https://github.com/CodelyTV/java-solid-examples.
  4. Execute some Gradle lifecycle tasks in order to check everything is OK:
    1. Create the project JAR: make build
    2. Run the tests and plugins verification tasks: make test
  5. Start playing around with the different examples of each SOLID principle. You have explanations here and in the test code 🙂

☝️ How to update dependencies

☕ Java

🐘 PHP

🧬 Scala

Liskov Substitution Principle (LSP)

Dependency Inversion Principle (DIP)

About

This hopefully helpful examples have been implemented by CodelyTV and contributors.

Pull Requests are welcome. We would suggest oppening an issue before actually coding your Pull Request in order to ask for feedback 🙂

License

The MIT License (MIT). Please see License for more information.

Contributors

Showing top 2 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from CodelyTV/java-solid-examples via the GitHub API.Last fetched: 6/14/2026