How To Install Java Artifact com.squareup.retrofit2.retrofit-mock v2.0.0-beta4

com.squareup.retrofit2 retrofit-mock 2.0.0-beta4

Introduction

In this article, we'll learn how to install Java artifact retrofit-mock from com.squareup.retrofit2 group in version 2.0.0-beta4. The artifact is available in 24 versions: 2.11.0 2.10.0 2.9.0 2.8.2 2.8.1 2.8.0 2.7.2 2.7.1 2.7.0 2.6.4 2.6.3 2.6.2 2.6.1 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.2 2.0.1 2.0.0-beta4 2.0.0-beta3 2.0.0 The parent project is: com.squareup.retrofit2::parent::2.0.0-beta4

How To Install Java Artifact com.squareup.retrofit2.retrofit-mock In Version 2.0.0-beta4

To install the Retrofit Mock Adapter artifact in version 2.0.0-beta4 add the following dependency to your pom.xml file for Maven Project.

The dependency needs to be added in the dependencies section which is located in the main project tag of the pom.xml file. The sample pom.xml file that uses Retrofit Mock Adapter dependency could look as follows:

Other dependency snippets for Gradle, SBT, Ivy, Grape, Leiningen, and Buildr

Below you can find code snippets for other project build tools like Gradle, SBT, Ivy, Grape, Leiningen, and Buildr.

Compile dependencies (1)

Test dependencies (3)