Java Dependency Injection

Open-source Java projects categorized as Dependency Injection | Edit details

Top 17 Java Dependency Injection Projects

  • Dagger2

    A fast dependency injector for Android and Java.

    Project mention: Upgrading to Gradles modern plugin configuration | | 2022-01-26

    In particular I have found one popular plugin at this time which is not compliant and that is the Dagger Hilt Plugin. You can track the support for it here, it's quite likely by the time you read this post that it will already have been released.

  • Guice

    Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 8 and above, brought to you by Google.

    Project mention: Ask HN: Google Guice another abandonware from Google? | | 2022-01-17

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • Bootique

    Bootique is a minimally opinionated platform for modern runnable Java apps.

    Project mention: Ask HN: What's your Go-to web stack for Java? | | 2021-06-22

    I really like Bootique as an alternative to Spring Boot:

    For higher loads I pick Vert.x.

    Other than that, it's almost always 3 J's: Jetty, Jersey, Jackson.

  • Toothpick

    A scope tree based Dependency Injection (DI) library for Java / Kotlin / Android.

    Project mention: Hilt or Dagger | | 2021-08-25


  • Governator

    Governator is a library of extensions and utilities that enhance Google Guice to provide: classpath scanning and automatic binding, lifecycle management, configuration to field mapping, field validation and parallelized object warmup.

  • apk-dependency-graph

    Android class dependency visualizer. This tool helps to visualize the current state of the project.

    Project mention: Is there a library that can generate a dependency graph for you? | | 2021-12-08

    I decided to use this:

  • ActiveJ

    ActiveJ is an alternative Java platform built from the ground up. ActiveJ redefines web, high load, and cloud programming in Java, featuring ultimate performance and scalability!

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • Weld

    Weld, including integrations for Servlet containers and Java SE, examples and documentation (by weld)

    Project mention: Weld 5.0.0.Beta1 released! | | 2022-01-27
  • Feather

    Lightweight dependency injection for Java and Android (JSR-330) (by zsoltherpai)

    Project mention: Forking google | | 2021-11-20

    Dagger - fork Feather instead or just include it to any project. It's just 4 classes.

  • transfuse

    :syringe: Transfuse - A Dependency Injection and Integration framework for Google Android

  • Apache DeltaSpike

    Mirror of Apache Deltaspike

  • avaje-inject

    Dependency injection via APT (source code generation) ala "Server side Dagger DI"

    Project mention: Dagger clone with a module info | | 2022-01-25

    You might like Avaje Inject! It's a pure Java DI framework that's got quite a nice Dagger-inspired design but is better generalized, IMO.

  • JayWire

    JayWire Dependency Injection

  • java-11-examples

    JDK 11 examples and demo projects.

    Project mention: How to publish a Gradle project to OSSRH. | | 2021-02-05

    Yet another example for Gradle

  • spring-examples

    Starter projects with Spring using Java and Kotlin. Contains modules that covers Security with JWT, Spring with Kotlin, Dependency injection simplified etc.

  • dapper

    modular dagger (by jbock-java)

    Project mention: Dagger clone with a module info | | 2022-01-25

    So I put in the hard work and created dapper, a trimmed-down copy of version 2.37, the last pure-Java version of dagger. I hope it can help with jpms adoption. I also hope I can roughly keep it in sync with a quite active upstream.

  • android-ghostfish

    Dependency injection container for Android

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-01-27.

Java Dependency Injection related posts


What are some of the best open-source Dependency Injection projects in Java? This list will help you:

Project Stars
1 Dagger2 16,438
2 Guice 10,681
3 Bootique 1,359
4 Toothpick 1,098
5 Governator 799
6 apk-dependency-graph 706
7 ActiveJ 408
8 Weld 339
9 Feather 331
10 transfuse 226
11 Apache DeltaSpike 136
12 avaje-inject 87
13 JayWire 50
14 java-11-examples 47
15 spring-examples 32
16 dapper 3
17 android-ghostfish 3
Find remote jobs at our new job board There are 30 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.