An open API service indexing awesome lists of open source software.

https://github.com/jenkinsci/apache-httpcomponents-client-4-api-plugin

Apache HttpClient 4.x API Plugin for Jenkins
https://github.com/jenkinsci/apache-httpcomponents-client-4-api-plugin

httpcomponents-client jenkins jenkins-api-plugin

Last synced: about 1 month ago
JSON representation

Apache HttpClient 4.x API Plugin for Jenkins

Awesome Lists containing this project

README

        

# Apache HTTP Components Client 4.x API Plugin

This plugin bundles all the components of [Apache HttpComponents Client 4.5.x](https://hc.apache.org/httpcomponents-client-4.5.x/index.html) except `httpclient-win` because of the dependency on jna.
These components can be used by other plugins as a dependency.
It allows managing library updates independently from plugins.

## How to introduce to your plugin

### Plugins directly depending on httpclient

Replace the dependency to `org.apache.httpcomponents:httpclient` with the dependency to `apache-httpcomponents-client-4-api`.
Avoid version conflicts by using the [Jenkins plugin BOM](https://github.com/jenkinsci/bom#readme) rather than depending on a specific version.

* Before:
```

...

org.apache.httpcomponents
httpclient
4.5

...

```
* After:
```

...

org.jenkins-ci.plugins
apache-httpcomponents-client-4-api

...

```

### Plugins using libraries depending on httpclient

Add the dependency to `apache-httpcomponents-client-4-api` BEFORE any of dependencies to those libraries to force maven to use `httpclient` declared by `apache-httpcomponents-client-4-api`.
Avoid version conflicts by using the [Jenkins plugin BOM](https://github.com/jenkinsci/bom#readme) rather than depending on a specific version.

* Before:
```

...

somelibrary-using-httpclient
1.0.0


anotherlibrary-using-httpclient
1.0.0

...

```
* After:
```

...

org.jenkins-ci.plugins
apache-httpcomponents-client-4-api


somelibrary-using-httpclient
1.0.0


anotherlibrary-using-httpclient
1.0.0

...

```

## Release Notes

See [GitHub releases](https://github.com/jenkinsci/apache-httpcomponents-client-4-api-plugin/releases) for current release notes.
Releases before 2019 are described in the archived [Changelog](https://github.com/jenkinsci/apache-httpcomponents-client-4-api-plugin/blob/apache-httpcomponents-client-4-api-4.5.5-2.0/CHANGELOG.md).

## License

* Plugin source and documentation - [MIT License](http://opensource.org/licenses/MIT)
* Nested library is licensed with [Apache License, Version 2.0](http://www.apache.org/licenses/)