MVN

com.squareup.retrofit2 : retrofit

Maven & Gradle

May 20, 2020
1.7k usages
43k stars

Retrofit · A type-safe HTTP client for Android and Java.

<dependency>
    <groupId>com.squareup.retrofit2</groupId>
    <artifactId>retrofit</artifactId>
    <version>2.9.0</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of com.squareup.retrofit2 : retrofit to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 2.9.0
  • Latest Beta: 2.0.0-beta4

All Versions

Choose a version of com.squareup.retrofit2 : retrofit to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
2.9.x
retrofit-2.9.0
2.8.x
retrofit-2.8.2
retrofit-2.8.1
retrofit-2.8.0
2.7.x
retrofit-2.7.2
retrofit-2.7.1
retrofit-2.7.0
2.6.x
retrofit-2.6.4
retrofit-2.6.3
retrofit-2.6.2
retrofit-2.6.1
retrofit-2.6.0
2.5.x
retrofit-2.5.0
2.4.x
retrofit-2.4.0
CVE-2018-1000850
2.3.x
retrofit-2.3.0
CVE-2018-1000850
2.2.x
retrofit-2.2.0
CVE-2018-1000850
2.1.x
retrofit-2.1.0
CVE-2018-1000850
2.0.x
retrofit-2.0.2
CVE-2018-1000850
retrofit-2.0.1
CVE-2018-1000850
retrofit-2.0.0
CVE-2018-1000850
retrofit-2.0.0-beta4
CVE-2018-1000850
retrofit-2.0.0-beta3
CVE-2018-1000850

How to add a dependency to Maven

Add the following com.squareup.retrofit2 : retrofit maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>com.squareup.retrofit2</groupId>
    <artifactId>retrofit</artifactId>
    <version>2.9.0</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following com.squareup.retrofit2 : retrofit gradle dependency to your build.gradle file:

implementation 'com.squareup.retrofit2:retrofit:2.9.0'

Gradle Kotlin DSL: Add the following com.squareup.retrofit2 : retrofit gradle kotlin dependency to your build.gradle.kts file:

implementation("com.squareup.retrofit2:retrofit:2.9.0")

How to add a dependency to SBT Scala

SBT Scala: Add the following com.squareup.retrofit2 : retrofit sbt scala dependency to your build.sbt file:

libraryDependencies += "com.squareup.retrofit2" % "retrofit" % "2.9.0"

Advertisement

Dependencies from Group

May 20, 2020
1.7k usages
43k stars
May 20, 2020
934 usages
43k stars
May 20, 2020
384 usages
43k stars
May 20, 2020
234 usages
43k stars
May 20, 2020
216 usages
43k stars

Discover Dependencies

Jul 23, 2023
4.1k usages
6.4k stars
Jul 07, 2023
21 usages
39 stars
Jun 08, 2013
391 usages
Aug 18, 2023
278 usages
521 stars
Nov 21, 2005
358 usages
Jul 05, 2019
3.3k usages
Aug 25, 2023
64 usages
65.6k stars
Oct 23, 2021
4k usages
Aug 18, 2023
684 usages
1.6k stars