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
- Host: GitHub
- URL: https://github.com/jenkinsci/apache-httpcomponents-client-4-api-plugin
- Owner: jenkinsci
- License: mit
- Created: 2017-08-14T15:15:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-21T02:39:00.000Z (about 1 month ago)
- Last Synced: 2025-04-21T03:44:35.519Z (about 1 month ago)
- Topics: httpcomponents-client, jenkins, jenkins-api-plugin
- Language: Java
- Homepage: https://plugins.jenkins.io/apache-httpcomponents-client-4-api
- Size: 238 KB
- Stars: 13
- Watchers: 4
- Forks: 28
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Codeowners: .github/CODEOWNERS
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/)