javax.inject maven dependency

This package or jar specifies a means for obtaining objects in such a way as to maximize reusability, testability, and maintainability compared to traditional approaches such as constructors, factories, and service locators (e.g., JNDI). This process, known as dependency injection, is beneficial to most nontrivial applications.

This page gives you a quick reference to get javax.inject dependency for Maven or Gradle projects. You can also download the javax.inject jar dependency, the link given at the "Download JAR File" section.

Javax Inject Maven Dependency

Copy below Javax Inject maven dependency and paste in your project pom.xml file:
<!-- https://mvnrepository.com/artifact/javax.inject/javax.inject -->
<dependency>
    <groupId>javax.inject</groupId>
    <artifactId>javax.inject</artifactId>
    <version>1</version>
</dependency>
For more details about the proper version to use, check out the following Maven Central link.

Javax Inject Gradle Dependency

Copy below Javax Inject gradle dependency and paste in your project build.gradle file:
// https://mvnrepository.com/artifact/javax.inject/javax.inject
compile group: 'javax.inject', name: 'javax.inject', version: '1'

Comments