Skip to content

Ship ONLY httpclient5 5.6.1#455

Merged
donoghuc merged 2 commits into
elastic:mainfrom
donoghuc:exclude-older-httpclient5
May 11, 2026
Merged

Ship ONLY httpclient5 5.6.1#455
donoghuc merged 2 commits into
elastic:mainfrom
donoghuc:exclude-older-httpclient5

Conversation

@donoghuc

@donoghuc donoghuc commented May 7, 2026

Copy link
Copy Markdown
Member

The shadow jar task merges two dependency sources: a fileTree copy of jars from the ES source build (elasticsearchMinimalCore) and Maven-resolved dependencies from elasticsearch-java (elasticsearchClient). Because elasticsearchMinimalCore is listed first, its httpclient5-5.5.jar from x-pack-core takes precedence over the patched httpclient5-5.6.1.jar resolved via Maven from elasticsearch-java 9.4.0.

Exclude httpclient5, httpcore5, and httpcore5-h2 from the x-pack-core module copy so the Maven-resolved versions are the sole source. This ensures the plugin ships the patched httpclient5 5.6.1 regardless of what version the ES server source build bundles.

Related:

Thanks for contributing to Logstash! If you haven't already signed our CLA, here's a handy link: https://www.elastic.co/contributor-agreement/

@mergify

mergify Bot commented May 7, 2026

Copy link
Copy Markdown

This pull request does not have a backport label. Could you fix it @donoghuc? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit.
  • If no backport is necessary, please add the backport-skip label

@donoghuc
donoghuc force-pushed the exclude-older-httpclient5 branch from 4c08dc8 to 3ce9d6d Compare May 7, 2026 22:05
mashhurs
mashhurs previously approved these changes May 11, 2026

@mashhurs mashhurs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

donoghuc added 2 commits May 11, 2026 13:02
The shadow jar task merges two dependency sources: a `fileTree` copy of jars from
the ES source build (`elasticsearchMinimalCore`) and Maven-resolved
dependencies from `elasticsearch-java` (`elasticsearchClient`). Because
`elasticsearchMinimalCore` is listed first, its `httpclient5-5.5.jar` from
x-pack-core takes precedence over the patched `httpclient5-5.6.1.jar`
resolved via Maven from `elasticsearch-java 9.4.0`.

Exclude httpclient5, httpcore5, and httpcore5-h2 from the x-pack-core
module copy so the Maven-resolved versions are the sole source. This
ensures the plugin ships the patched `httpclient5` `5.6.1` regardless of
what version the ES server source build bundles.

Related:
- elastic/elasticsearch-java#1227
- elastic/elasticsearch#148345
@donoghuc donoghuc added the backport-active-9 Automated backport with mergify to all the active 9.[0-9]+ branches label May 11, 2026
@donoghuc
donoghuc merged commit aac830c into elastic:main May 11, 2026
4 of 5 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

@Mergifyio backport 9.3 9.4

@mergify

mergify Bot commented May 11, 2026

Copy link
Copy Markdown

backport 9.3 9.4

✅ Backports have been created

Details

Cherry-pick of aac830c has failed:

On branch mergify/bp/9.3/pr-455
Your branch is up to date with 'origin/9.3'.

You are currently cherry-picking commit aac830c.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   build.gradle

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   CHANGELOG.md

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@elasticmachine

Copy link
Copy Markdown

💚 Build Succeeded

History

donoghuc added a commit that referenced this pull request May 11, 2026
* Ship ONLY httpclient5 5.6.1 (#455)

* Ship ONLY httpclient5 5.6.1

The shadow jar task merges two dependency sources: a `fileTree` copy of jars from
the ES source build (`elasticsearchMinimalCore`) and Maven-resolved
dependencies from `elasticsearch-java` (`elasticsearchClient`). Because
`elasticsearchMinimalCore` is listed first, its `httpclient5-5.5.jar` from
x-pack-core takes precedence over the patched `httpclient5-5.6.1.jar`
resolved via Maven from `elasticsearch-java 9.4.0`.

Exclude httpclient5, httpcore5, and httpcore5-h2 from the x-pack-core
module copy so the Maven-resolved versions are the sole source. This
ensures the plugin ships the patched `httpclient5` `5.6.1` regardless of
what version the ES server source build bundles.

Related:
- elastic/elasticsearch-java#1227
- elastic/elasticsearch#148345

* add changelog entry

(cherry picked from commit aac830c)

# Conflicts:
#	CHANGELOG.md

* release prep

---------

Co-authored-by: Cas Donoghue <cas.donoghue@gmail.com>
donoghuc added a commit that referenced this pull request May 11, 2026
* Ship ONLY httpclient5 5.6.1 (#455)

* Ship ONLY httpclient5 5.6.1

The shadow jar task merges two dependency sources: a `fileTree` copy of jars from
the ES source build (`elasticsearchMinimalCore`) and Maven-resolved
dependencies from `elasticsearch-java` (`elasticsearchClient`). Because
`elasticsearchMinimalCore` is listed first, its `httpclient5-5.5.jar` from
x-pack-core takes precedence over the patched `httpclient5-5.6.1.jar`
resolved via Maven from `elasticsearch-java 9.4.0`.

Exclude httpclient5, httpcore5, and httpcore5-h2 from the x-pack-core
module copy so the Maven-resolved versions are the sole source. This
ensures the plugin ships the patched `httpclient5` `5.6.1` regardless of
what version the ES server source build bundles.

Related:
- elastic/elasticsearch-java#1227
- elastic/elasticsearch#148345

* add changelog entry

(cherry picked from commit aac830c)

* release prep

---------

Co-authored-by: Cas Donoghue <cas.donoghue@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-9 Automated backport with mergify to all the active 9.[0-9]+ branches

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants