Skip to content

Merge upstream to master #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 167 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
e8f5d36
Upgrade netty 4.1.29
slandelle Aug 27, 2018
4d03ad6
Fix EchoHandler missing response ContentLength
slandelle Aug 27, 2018
a6d1cd2
Fix chunked request body handling with HTTPS proxy, close #1571
slandelle Aug 27, 2018
a3b1454
Fix Response#hasResponseBody javadoc, close #1570
slandelle Aug 27, 2018
4717c9d
set useLaxCookieEncoder in DefaultAHCConfig.Builder constructor (#1573)
Aug 31, 2018
fdb95d6
[maven-release-plugin] prepare release async-http-client-project-2.5.3
slandelle Sep 4, 2018
365c1e6
[maven-release-plugin] prepare for next development iteration
slandelle Sep 4, 2018
c035ead
Fix regression introduced in d5960563dcbd09854b8ae3e416108ce770b292c2…
slandelle Oct 4, 2018
c5b6857
HttpContentDecompressor is misplaced after upgrading pipeline for HTT…
slandelle Oct 5, 2018
847e45e
Upgrade netty 4.1.30.Final
slandelle Oct 5, 2018
c2ecf92
[maven-release-plugin] prepare release async-http-client-project-2.5.4
slandelle Oct 5, 2018
cabac4a
[maven-release-plugin] prepare for next development iteration
slandelle Oct 5, 2018
e3bbad7
Add non-null ResponseBody for responses with empty body (#1585), clos…
OKoneva Oct 16, 2018
e1f6371
Allow setting headers using a Map with a subclass of CharSequence (fo…
breun Oct 19, 2018
23095ea
Bump 2.6.0-SNAPSHOT
slandelle Oct 19, 2018
7908701
Improve SpnegoEngine to allow more login configuration options (#1582)
nddipiazza Oct 19, 2018
3b3a7da
Fix SpnegoEngine.getCompleteServicePrincipalName when servicePrincipa…
nddipiazza Oct 20, 2018
97b6192
Support InputStream based multipart part (#1593), close #857
samridh90 Oct 27, 2018
d887193
[maven-release-plugin] prepare release async-http-client-project-2.6.0
slandelle Oct 29, 2018
1281264
[maven-release-plugin] prepare for next development iteration
slandelle Oct 29, 2018
2b232a4
Docs fixes/clarity improvements (#1594)
n-miles Nov 3, 2018
efdd477
Bump version 2.7.0-SNAPSHOT
slandelle Dec 6, 2018
f61f88e
Expose SSL Session of a connection to AsyncHandler.onTlsHandshakeSucc…
rolandomanrique Dec 6, 2018
16bca5c
Added BlockingConnectionSemaphoreFactory (#1586)
maltalex Dec 6, 2018
c4a2ae2
Update README.md (#1600)
gsilvestrin Dec 13, 2018
6656e9c
typo
slandelle Dec 20, 2018
02b97ed
Demonstrate AHC properly encodes chinese characters
slandelle Dec 20, 2018
29ce5fc
Fix tests
slandelle Dec 21, 2018
bdc0d75
Upgrade netty 4.1.32
sullis Jan 7, 2019
670e8d9
nit
slandelle Jan 21, 2019
e56b3e6
Reenable osgi support (#1605)
jenskordowski Jan 21, 2019
a6e5793
Upgrage netty 4.1.33.Final
slandelle Jan 21, 2019
11744c8
Upgrde rxjava2 2.2.5
slandelle Jan 21, 2019
a636799
Upgrade hamcrest 2.1
slandelle Jan 21, 2019
757237a
Upgrade mockito 2.23.4
slandelle Jan 21, 2019
92aaa57
Upgrade tomcat 9.0.14
slandelle Jan 21, 2019
ebc928b
Upgrade jetty 9.4.14.v20181114
slandelle Jan 21, 2019
9bb2be2
Upgrade retrofit 2.5.0
slandelle Jan 24, 2019
5f0590e
Fix distributionManagement urls, should be https
slandelle Jan 24, 2019
5c07a0c
[maven-release-plugin] prepare release async-http-client-project-2.7.0
slandelle Jan 24, 2019
4d915fd
[maven-release-plugin] prepare for next development iteration
slandelle Jan 24, 2019
a00d469
no need to reset, it's done in doFinal
slandelle Feb 5, 2019
1e3ed1d
Retrofit improvements (#1615)
bfg Feb 26, 2019
5b1cc77
fix repo name
slandelle Feb 27, 2019
8571b00
[maven-release-plugin] prepare release async-http-client-project-2.8.0
slandelle Feb 27, 2019
fdf9a7b
[maven-release-plugin] prepare for next development iteration
slandelle Feb 27, 2019
bbaa4c3
Retrofit http client supplier npe fix (#1617)
bfg Feb 28, 2019
fea53b0
Improved retrofit timeout handling. (#1618)
bfg Feb 28, 2019
cf2348e
Updated maven-javadoc-plugin to 3.0.1 (#1621)
bfg Feb 28, 2019
f45798c
[maven-release-plugin] prepare release async-http-client-project-2.8.1
slandelle Feb 28, 2019
816b0a8
[maven-release-plugin] prepare for next development iteration
slandelle Feb 28, 2019
71dad6a
Expose Remote address to the KeepAliveStrategy (#1622)
wuguangkuo May 9, 2019
4803ab4
Stop doing reverse DNS lookups (#1633), close #1632
n-miles May 17, 2019
f66ace1
[maven-release-plugin] prepare release async-http-client-project-2.9.0
slandelle May 21, 2019
8b65942
[maven-release-plugin] prepare for next development iteration
slandelle May 21, 2019
80186ea
Update AbstractMaybeAsyncHandlerBridge to forward all events to the d…
margelatu Jun 3, 2019
24f3095
Upgrade netty 4.1.36.Final
slandelle Jun 3, 2019
2988606
Upgrade slf4j 1.7.26
slandelle Jun 3, 2019
e170ae0
Upgrade netty-reactive-streams 2.0.3
slandelle Jun 3, 2019
f76f021
Upgrade rxjava2 2.2.9
slandelle Jun 3, 2019
5589051
Upgrade jetty 9.4.18.v20190429
slandelle Jun 3, 2019
8d3d4a3
Upgrade tomcat 9.0.20
slandelle Jun 3, 2019
b9c4e45
Upgrade mockito 2.28.2
slandelle Jun 3, 2019
ba6691f
nit
slandelle Jun 3, 2019
0de511d
Make test broken by Jetty upgrade pass...
slandelle Jun 3, 2019
47430bb
[maven-release-plugin] prepare release async-http-client-project-2.10.0
slandelle Jun 3, 2019
adc354e
[maven-release-plugin] prepare for next development iteration
slandelle Jun 3, 2019
c6ad8ed
fix typo, close #1640
slandelle Jun 11, 2019
84ea4ab
Make public visible, close #1629 (#1641)
aefimov Jun 12, 2019
b7026a1
Keep parts on 307, close #1643
slandelle Jun 17, 2019
c426c54
Trigger retry in WriteListener on SSLException, close #1645
slandelle Jun 18, 2019
febe50c
Add unit tests for org.asynchttpclient.netty.util.ByteBufUtils (#1639)
EricHetti Jun 25, 2019
79af4c8
[maven-release-plugin] prepare release async-http-client-project-2.10.1
slandelle Jun 25, 2019
53da25c
[maven-release-plugin] prepare for next development iteration
slandelle Jun 25, 2019
84bbec6
Upgrade netty 4.1.37.Final
slandelle Jul 19, 2019
fa8ec55
Upgrade rxjava2 2.2.10
slandelle Jul 19, 2019
116fdb4
make NettyWebSocket.sendCloseFrame(int statusCode, String reasonText)…
radai-rosenblatt Aug 1, 2019
c16a06d
Hit github.com as Travis' infrastructure's DNS seems to be buggy
slandelle Aug 1, 2019
893bac3
Upgrade netty 4.1.39.Final
slandelle Aug 13, 2019
f53531f
Switch to openjdk8
slandelle Aug 13, 2019
83dac7d
Fix openjdk8
slandelle Aug 13, 2019
4eac446
[maven-release-plugin] prepare release async-http-client-project-2.10.2
slandelle Sep 5, 2019
c770f41
[maven-release-plugin] prepare for next development iteration
slandelle Sep 5, 2019
08d4a3e
Upgrade ahc 4.1.41.Final
slandelle Sep 13, 2019
f4c5bef
Added Automatic-Module-Name (#1664)
doom369 Sep 27, 2019
48bb9b4
Upgrade netty 4.1.42.Final
slandelle Sep 27, 2019
7eeea93
Upgrade deps
slandelle Sep 27, 2019
4f5c13a
[maven-release-plugin] prepare release async-http-client-project-2.10.3
slandelle Sep 27, 2019
d7dd7de
[maven-release-plugin] prepare for next development iteration
slandelle Sep 27, 2019
1e1a844
Support Netty kqueue transport (#1665)
astei Sep 28, 2019
e1b461a
Disable by default DTD parsing in webdav support, close #1666
slandelle Oct 9, 2019
3e68200
Don't use DefaultHttpHeaders(validateHeaders = false)
slandelle Oct 9, 2019
2f8e751
nit
slandelle Oct 9, 2019
e0133d4
[maven-release-plugin] prepare release async-http-client-project-2.10.4
slandelle Oct 12, 2019
7fd935e
[maven-release-plugin] prepare for next development iteration
slandelle Oct 12, 2019
a7ea7cf
Support for OpenSslEngine with no finalizer (#1669)
johnou Oct 16, 2019
c5eff42
Added toBuilder methods to Request (#1673)
kringol Nov 7, 2019
2966fea
Add async-http-client-bom (#1680)
breun Nov 29, 2019
087b41a
Remove unused dependency (#1675)
cesarsotovalero Nov 29, 2019
9d0f1d7
Install missing WebSocketClientCompressionHandler when using HTTP pro…
slandelle Jan 7, 2020
677c43f
nit: clean up getNativeTransportFactory
slandelle Jan 7, 2020
1f8b582
Upgrade Netty (#1694)
aheritier Feb 3, 2020
e96e444
Upgrade Netty 4.1.45.Final
slandelle Feb 3, 2020
4351abd
prerequisites are for plugins, not regular projects
slandelle Feb 7, 2020
59cae4d
Upgrade maven plugins
slandelle Feb 7, 2020
5dc9d6a
drop deprecated oss-parent
slandelle Feb 7, 2020
f8fab66
Add missing pom stuff now parent has been removed
slandelle Feb 7, 2020
3b505ea
Maven central requires scm!
slandelle Feb 7, 2020
e6b0a9b
[maven-release-plugin] prepare release async-http-client-project-2.10.5
slandelle Feb 7, 2020
11d766b
[maven-release-plugin] prepare for next development iteration
slandelle Feb 7, 2020
1ed60a4
Upgrade netty 4.1.46.Final
slandelle Feb 28, 2020
1a93369
Upgrade slf4j 1.7.30
slandelle Feb 28, 2020
cf1673f
Upgrade reactive-streams 1.0.3
slandelle Feb 28, 2020
fa274ba
Upgrade netty-reactive-streams.version 2.0.4
slandelle Feb 28, 2020
e2e147c
Upgrade rxjava2 2.2.18
slandelle Feb 28, 2020
4407db6
Upgrade testng 7.1.0
slandelle Feb 28, 2020
e098c0c
Upgrade tomcat 9.0.31
slandelle Feb 28, 2020
4745354
Upgrade mockito 3.3.0
slandelle Feb 28, 2020
94df3f7
Upgrade hamcrest 2.2
slandelle Feb 28, 2020
71b0c85
Upgrade kerby 2.0.0
slandelle Feb 28, 2020
7060f65
Upgrade guava 28.2-jre
slandelle Feb 28, 2020
ba25c88
Upgrade lombok 1.18.12
slandelle Feb 28, 2020
558d2c4
Upgrade retrofit 2.7.2
slandelle Feb 28, 2020
0e9ad8c
Introduce an option for tuning SO_KEEPALIVE, close #1702
slandelle Mar 4, 2020
28ba8f7
[maven-release-plugin] prepare release async-http-client-project-2.11.0
slandelle Mar 4, 2020
492cb67
[maven-release-plugin] prepare for next development iteration
slandelle Mar 4, 2020
26d1cc0
Disable SPNEGO test that fails for JDK11, see #1706
slandelle Mar 17, 2020
0b1b622
Only enable maven-gpg-plugin during release
slandelle Mar 19, 2020
fe0fe2f
fixed NPE caused by open but unconnected channels. (#1711)
yunglin Mar 23, 2020
7a69311
#1686 configure accuracy in HashedTimerWheel (#1705)
zagorulkinde Mar 24, 2020
7a1a190
increase netty version to 4.1.48 (#1713)
dmjb Apr 1, 2020
d4f1e58
Cookiejar optimization, close #1580 (#1708)
sivaalli Apr 3, 2020
641a1f9
[maven-release-plugin] prepare release async-http-client-project-2.12.0
slandelle Apr 3, 2020
9e2873e
[maven-release-plugin] prepare for next development iteration
slandelle Apr 3, 2020
45b4561
Fix README error, close #1697
slandelle Apr 3, 2020
a44aac8
Fix regression not allowing disabling CookieStore, close #1714
slandelle Apr 8, 2020
abd9351
[maven-release-plugin] prepare release async-http-client-project-2.12.1
slandelle Apr 8, 2020
7164938
[maven-release-plugin] prepare for next development iteration
slandelle Apr 8, 2020
ac2d4bd
Upgrade to jakarta.activation 1.2.2 (#1715)
amarkevich Apr 15, 2020
f2f5a84
Added bnd instructions for optional native transports, close #1717 (#…
swimmesberger Apr 23, 2020
9c8c70d
Improve exceptional behavior in reactive streams (#1723)
n-miles May 14, 2020
05168c5
Add mention that this project is looking for a new maintainer
slandelle Jun 20, 2020
383d543
Upgrade netty 4.1.51
slandelle Aug 2, 2020
43adb94
Upgrade rxjava2 2.2.19
slandelle Aug 2, 2020
b9b8836
Upgrade mockito 3.4.6
slandelle Aug 2, 2020
12f4b2a
Cancel replaced timeouts to avoid leak (#1732)
will-lauer Aug 2, 2020
d6ddae8
Swap jfarcand dead blog post links on README (#1738)
TomGranot Nov 9, 2020
71a4454
Add TomGranot as maintainer of the repo
TomGranot Nov 9, 2020
9dcb9dd
Fix README TomGranot GitHub Link
TomGranot Nov 9, 2020
472f39a
Add RFC Mention in README
TomGranot Nov 12, 2020
7800e7e
Add PR Github Action
TomGranot Nov 25, 2020
a1ea371
Fix Failing Github Actions Tests (#1753)
TomGranot Dec 12, 2020
2b12d0b
Fix typos (#1752)
LorenzNickel Dec 13, 2020
57ca41a
Change PR Workflow Name
Dec 19, 2020
2658825
Bump netty.version for vulnerability fixes (#1755)
lukestephenson Dec 21, 2020
64622ad
[maven-release-plugin] prepare release async-http-client-project-2.12.2
Jan 1, 2021
7770c8b
[maven-release-plugin] prepare for next development iteration
Jan 1, 2021
d24ee6a
Propagate original request user-agent in proxy CONNECT requests (#1742)
TomGranot Jan 5, 2021
bd7b5bd
Use original method in redirects for HEAD / OPTIONS requests (#1736)
TomGranot Jan 5, 2021
d2fc371
Fix for NPE when connection is reset by peer (#1771)
rachid-o Mar 27, 2021
576decf
Proxy CONNECT custom headers (#1774)
neket985 Mar 27, 2021
7201bf1
Bump netty to 4.1.60.Final #1775 (#1782)
hysterus1 Mar 27, 2021
7a370af
[maven-release-plugin] prepare release async-http-client-project-2.12.3
Mar 27, 2021
6973b58
[maven-release-plugin] prepare for next development iteration
Mar 27, 2021
9b7298b
Contributor technical overview - First Draft (#1768)
TomGranot Apr 14, 2021
c959fa0
Maintenance update
TomGranot Jun 8, 2021
900cd27
Looking for a new maintainer
TomGranot Nov 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This workflow is designed to build PRs for AHC. Note that it does not actually publish AHC, just builds and test it.
# Docs: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Test PR

on:
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build and test with Maven
run: mvn test -Ptest-output
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ test-output
MANIFEST.MF
work
atlassian-ide-plugin.xml
/bom/.flattened-pom.xml
10 changes: 2 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
language: java
jdk:
- oraclejdk8
- openjdk8

before_script:
- travis/before_script.sh

script:
- mvn test -Ptest-output
- mvn test javadoc:javadoc -Ptest-output
- find $HOME/.m2 -name "_remote.repositories" | xargs rm
- find $HOME/.m2 -name "resolver-status.properties" | xargs rm -f

Expand All @@ -16,12 +16,6 @@ after_success:

sudo: false

# https://github.com/travis-ci/travis-ci/issues/3259
addons:
apt:
packages:
- oracle-java8-installer

# Cache settings
cache:
directories:
Expand Down
63 changes: 47 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,53 @@
# Looking for a new maintainer

Due to lack of time on my end and this repo being dead for most of the last couple of years, I am bringing the repo back up for maintenance. Reach out to me on Twitter - @TomGranot - for more info.

# Async Http Client [![Build Status](https://travis-ci.org/AsyncHttpClient/async-http-client.svg?branch=master)](https://travis-ci.org/AsyncHttpClient/async-http-client) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.asynchttpclient/async-http-client/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.asynchttpclient/async-http-client/)

Follow [@AsyncHttpClient](https://twitter.com/AsyncHttpClient) on Twitter.

The AsyncHttpClient (AHC) library allows Java applications to easily execute HTTP requests and asynchronously process HTTP responses.
The library also supports the WebSocket Protocol.

It's built on top of [Netty](https://github.com/netty/netty). I's currently compiled on Java 8 but runs on Java 9 too.
It's built on top of [Netty](https://github.com/netty/netty). It's currently compiled on Java 8 but runs on Java 9 too.

## New Roadmap RFCs!

Well, not really RFCs, but as [I](https://github.com/TomGranot) am ramping up to release a new version, I would appreciate the comments from the community. Please add an issue and [label it RFC](https://github.com/AsyncHttpClient/async-http-client/labels/RFC) and I'll take a look!

## Installation

Binaries are deployed on Maven central:
Binaries are deployed on Maven Central.

Import the AsyncHttpClient Bill of Materials (BOM) to add dependency management for AsyncHttpClient artifacts to your project:

```xml
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client</artifactId>
<version>LATEST_VERSION</version>
</dependency>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client-bom</artifactId>
<version>LATEST_VERSION</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
```

Add a dependency on the main AsyncHttpClient artifact:

```xml
<dependencies>
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client</artifactId>
</dependency>
</dependencies>
```

The `async-http-client-extras-*` and other modules can also be added without having to specify the version for each dependency, because they are all managed via the BOM.

## Version

AHC doesn't use SEMVER, and won't.
Expand Down Expand Up @@ -73,7 +102,7 @@ AsyncHttpClient c = asyncHttpClient(config().setProxyServer(proxyServer("127.0.0
### Basics

AHC provides 2 APIs for defining requests: bound and unbound.
`AsyncHttpClient` and Dls` provide methods for standard HTTP methods (POST, PUT, etc) but you can also pass a custom one.
`AsyncHttpClient` and Dsl` provide methods for standard HTTP methods (POST, PUT, etc) but you can also pass a custom one.

```java
import org.asynchttpclient.*;
Expand All @@ -83,7 +112,7 @@ Future<Response> whenResponse = asyncHttpClient.prepareGet("http://www.example.c

// unbound
Request request = get("http://www.example.com/").build();
Future<Response> whenResponse = asyncHttpClient.execute(request);
Future<Response> whenResponse = asyncHttpClient.executeRequest(request);
```

#### Setting Request Body
Expand All @@ -110,6 +139,7 @@ Use the `addBodyPart` method to add a multipart part to the request.
This part can be of type:
* `ByteArrayPart`
* `FilePart`
* `InputStreamPart`
* `StringPart`

### Dealing with Responses
Expand Down Expand Up @@ -158,7 +188,7 @@ See `AsyncCompletionHandler` implementation as an example.

The below sample just capture the response status and skips processing the response body chunks.

Note that returning `ABORT` closed the underlying connection.
Note that returning `ABORT` closes the underlying connection.

```java
import static org.asynchttpclient.Dsl.*;
Expand Down Expand Up @@ -195,7 +225,7 @@ Integer statusCode = whenStatusCode.get();

#### Using Continuations

`ListenableFuture` has a `toCompletableFuture` that returns a `CompletableFuture`.
`ListenableFuture` has a `toCompletableFuture` method that returns a `CompletableFuture`.
Beware that canceling this `CompletableFuture` won't properly cancel the ongoing request.
There's a very good chance we'll return a `CompletionStage` instead in the next release.

Expand Down Expand Up @@ -243,7 +273,7 @@ WebSocket websocket = c.prepareGet("ws://demos.kaazing.com/echo")

## Reactive Streams

AsyncHttpClient has build in support for reactive streams.
AsyncHttpClient has built-in support for reactive streams.

You can pass a request body as a `Publisher<ByteBuf>` or a `ReactiveStreamsBodyGenerator`.

Expand Down Expand Up @@ -274,9 +304,10 @@ Response response = c.executeRequest(propFindRequest, new AsyncHandler() {
You can find more information on Jean-François Arcand's blog. Jean-François is the original author of this library.
Code is sometimes not up-to-date but gives a pretty good idea of advanced features.

* https://jfarcand.wordpress.com/2010/12/21/going-asynchronous-using-asynchttpclient-the-basic/
* https://jfarcand.wordpress.com/2011/01/04/going-asynchronous-using-asynchttpclient-the-complex/
* https://jfarcand.wordpress.com/2011/12/21/writing-websocket-clients-using-asynchttpclient/
* http://web.archive.org/web/20111224171448/http://jfarcand.wordpress.com/2011/01/12/going-asynchronous-using-asynchttpclient-for-dummies/
* http://web.archive.org/web/20111224171241/http://jfarcand.wordpress.com/2010/12/21/going-asynchronous-using-asynchttpclient-the-basic/
* http://web.archive.org/web/20111224162752/http://jfarcand.wordpress.com/2011/01/04/going-asynchronous-using-asynchttpclient-the-complex/
* http://web.archive.org/web/20120218183108/http://jfarcand.wordpress.com/2011/12/21/writing-websocket-clients-using-asynchttpclient/

## User Group

Expand All @@ -288,7 +319,7 @@ Keep up to date on the library development by joining the Asynchronous HTTP Clie

Of course, Pull Requests are welcome.

Here a the few rules we'd like you to respect if you do so:
Here are the few rules we'd like you to respect if you do so:

* Only edit the code related to the suggested change, so DON'T automatically format the classes you've edited.
* Use IntelliJ default formatting rules.
Expand Down
107 changes: 107 additions & 0 deletions bom/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client-project</artifactId>
<version>2.12.4-SNAPSHOT</version>
</parent>

<artifactId>async-http-client-bom</artifactId>
<packaging>pom</packaging>
<name>Asynchronous Http Client Bill of Materials (BOM)</name>
<description>Importing this BOM will provide dependency management for all AsyncHttpClient artifacts.</description>
<url>http://github.com/AsyncHttpClient/async-http-client/bom</url>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client-example</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client-extras-guava</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client-extras-jdeferred</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client-extras-registry</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client-extras-retrofit2</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client-extras-rxjava</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client-extras-rxjava2</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client-extras-simple</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client-extras-typesafe-config</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client-netty-utils</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<plugins>
<plugin>
<!-- This plugins allows using a parent for this file, so project.version can be resolved.
A clean BOM without a reference to a parent is generated, so that transitive dependencies will
not be included and cannot interfere with projects that use this BOM. -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.1.0</version>
<inherited>false</inherited>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
<configuration>
<flattenMode>bom</flattenMode>
<pomElements>
<properties>remove</properties>
<dependencies>remove</dependencies>
<build>remove</build>
</pomElements>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
14 changes: 12 additions & 2 deletions client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
<parent>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client-project</artifactId>
<version>2.5.3-SNAPSHOT</version>
<version>2.12.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>async-http-client</artifactId>
<name>Asynchronous Http Client</name>
<description>The Async Http Client (AHC) classes.</description>

<properties>
<javaModuleName>org.asynchttpclient.client</javaModuleName>
</properties>

<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -53,7 +57,8 @@
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-resolver-dns</artifactId>
<artifactId>netty-transport-native-kqueue</artifactId>
<classifier>osx-x86_64</classifier>
</dependency>
<dependency>
<groupId>org.reactivestreams</groupId>
Expand All @@ -73,5 +78,10 @@
<artifactId>reactive-streams-examples</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.kerby</groupId>
<artifactId>kerb-simplekdc</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* An {@link AsyncHandler} augmented with an {@link #onCompleted(Response)}
* convenience method which gets called when the {@link Response} processing is
* finished. This class also implement the {@link ProgressAsyncHandler}
* finished. This class also implements the {@link ProgressAsyncHandler}
* callback, all doing nothing except returning
* {@link org.asynchttpclient.AsyncHandler.State#CONTINUE}
*
Expand Down
Loading