MVN

com.squareup.retrofit2 : retrofit

Maven & Gradle

May 20, 2020
1.7k usages
39k 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 Updated
  • retrofit-2.9.0

    May 20, 2020
  • retrofit-2.8.2

    May 18, 2020
  • retrofit-2.8.1

    Mar 25, 2020
  • retrofit-2.8.0

    Mar 23, 2020
  • retrofit-2.7.2

    Feb 25, 2020
  • retrofit-2.7.1

    Jan 02, 2020
  • retrofit-2.6.4

    Jan 02, 2020
  • retrofit-2.7.0

    Dec 09, 2019
  • retrofit-2.6.3

    Dec 09, 2019
  • retrofit-2.6.2

    Sep 24, 2019
  • retrofit-2.6.1

    Jul 31, 2019
  • retrofit-2.6.0

    Jun 05, 2019
  • retrofit-2.5.0

    Nov 18, 2018
  • retrofit-2.4.0

    Mar 14, 2018
  • retrofit-2.3.0

    May 13, 2017
  • retrofit-2.2.0

    Feb 21, 2017
  • retrofit-2.1.0

    Jun 15, 2016
  • retrofit-2.0.2

    Apr 15, 2016
  • retrofit-2.0.1

    Mar 31, 2016
  • retrofit-2.0.0

    Mar 11, 2016
  • retrofit-2.0.0-beta4

    Feb 04, 2016
  • retrofit-2.0.0-beta3

    Jan 05, 2016

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