Guice is an open-source, Java-based dependency injection framework. It is lightweight and is actively developed/managed by Google.
This page gives you a quick reference to get Guice dependency for Maven or Gradle projects. You can also download the Guice dependency, the link given at the "Download JAR File" section.
Google Guice Core Library Maven Dependency
Copy below Google Guice Core Library maven dependency and paste in your project pom.xml file:
<!-- https://mvnrepository.com/artifact/com.google.inject/guice -->
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>4.2.2</version>
</dependency>
Google Guice Core Library Gradle Dependency
Copy below Google Guice Core Library gradle dependency and paste in your project build.gradle file:
// https://mvnrepository.com/artifact/com.google.inject/guice
compile group: 'com.google.inject', name: 'guice', version: '4.2.2'
Comments
Post a Comment