openrewrite / openrewrite/rewrite-apache
Migrate to ApacheHttpClient 5.x recipe updates org.apache.httpcomponents.core5: httpcore5 to version 5.3.x
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 6
- Forks
- 19
- Avg merge
- 56m
- Merged PRs (30d)
- 3
Description
What version of OpenRewrite are you using?
I am using
- Maven plugin v5.35.0
How are you running OpenRewrite?
mvn -U org.openrewrite.maven:rewrite-maven-plugin:5.35.0:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-apache:1.4.2 -Drewrite.activeRecipes=org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5 -Drewrite.exportDatatables=true
I am using the Maven plugin, and my project is a single module project.
What is the smallest, simplest way to reproduce the problem?
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.16</version>
</dependency>
What did you expect to see?
<dependency>
<groupId>org.apache.httpcomponents.core5</groupId>
<artifactId>httpcore5</artifactId>
<version>5.3-beta1</version>
</dependency>
What did you see instead?
5.3.x could not be resolved from maven central https://mvnrepository.com/artifact/org.apache.httpcomponents.core5/httpcore5
<dependency>
<groupId>org.apache.httpcomponents.core5</groupId>
<artifactId>httpcore5</artifactId>
<version>5.3.x</version>
</dependency>
What is the full stack trace of any errors you encountered?
stacktrace output here
Are you interested in contributing a fix to OpenRewrite?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Maven command in the issue and the sample pom.xml dependency, then inspect the ApacheHttpClient_5 recipe behavior for the httpcore to httpcore5 migration. Reproduce the unresolved 5.3.x result and verify that the recipe produces a resolvable httpcore5 version such as 5.3-beta1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100