Adapter: Java 8

A Retrofit CallAdapter for Java 8's CompletableFuture.

License

License

Categories

Categories

Java 8 Languages Square Business Logic Libraries Financial Retrofit Net HTTP Clients
GroupId

GroupId

com.squareup.retrofit2
ArtifactId

ArtifactId

adapter-java8
Last Version

Last Version

2.9.0
Release Date

Release Date

Type

Type

jar
Description

Description

Adapter: Java 8
A Retrofit CallAdapter for Java 8's CompletableFuture.
Project URL

Project URL

https://github.com/square/retrofit
Source Code Management

Source Code Management

https://github.com/square/retrofit/

Download adapter-java8

How to add to project

<!-- https://jarcasting.com/artifacts/com.squareup.retrofit2/adapter-java8/ -->
<dependency>
    <groupId>com.squareup.retrofit2</groupId>
    <artifactId>adapter-java8</artifactId>
    <version>2.9.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.squareup.retrofit2/adapter-java8/
implementation 'com.squareup.retrofit2:adapter-java8:2.9.0'
// https://jarcasting.com/artifacts/com.squareup.retrofit2/adapter-java8/
implementation ("com.squareup.retrofit2:adapter-java8:2.9.0")
'com.squareup.retrofit2:adapter-java8:jar:2.9.0'
<dependency org="com.squareup.retrofit2" name="adapter-java8" rev="2.9.0">
  <artifact name="adapter-java8" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.squareup.retrofit2', module='adapter-java8', version='2.9.0')
)
libraryDependencies += "com.squareup.retrofit2" % "adapter-java8" % "2.9.0"
[com.squareup.retrofit2/adapter-java8 "2.9.0"]

Dependencies

compile (1)

Group / Artifact Type Version
com.squareup.retrofit2 : retrofit jar 2.9.0

test (4)

Group / Artifact Type Version
junit : junit jar 4.13
org.assertj : assertj-core jar 3.13.2
com.google.guava : guava jar 28.1-jre
com.squareup.okhttp3 : mockwebserver jar 3.14.9

Project Modules

There are no modules declared in this project.

Retrofit

A type-safe HTTP client for Android and Java.

For more information please see the website.

Download

Download the latest JAR or grab from Maven central at the coordinates com.squareup.retrofit2:retrofit:2.9.0.

Snapshots of the development version are available in Sonatype's snapshots repository.

Retrofit requires at minimum Java 8+ or Android API 21+.

R8 / ProGuard

If you are using R8 the shrinking and obfuscation rules are included automatically.

ProGuard users must manually add the options from retrofit2.pro. You might also need rules for OkHttp and Okio which are dependencies of this library.

License

Copyright 2013 Square, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
com.squareup.retrofit2

Square

Versions

Version
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
2.0.0-beta4