Skip to content

Commit

Permalink
use Apache HttpClient 5.3.x (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis authored Jun 7, 2024
1 parent aed323f commit 0ccea84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/rewrite/apache-httpclient-5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ recipeList:
oldArtifactId: httpclient
newGroupId: org.apache.httpcomponents.client5
newArtifactId: httpclient5
newVersion: 5.2.x
newVersion: 5.3.x
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: org.apache.httpcomponents
oldArtifactId: httpcore
newGroupId: org.apache.httpcomponents.core5
newArtifactId: httpcore5
newVersion: 5.2.x
newVersion: 5.3.x
- org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_ClassMapping
- org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_DeprecatedMethods
- org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_TimeUnit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ void migrateDependencies() {
</dependencies>
</project>
""", spec -> spec.after(pom -> {
Matcher version = Pattern.compile("5\\.2\\.\\d+").matcher(pom);
assertThat(version.find()).describedAs("Expected 5.2.x in %s", pom).isTrue();
Matcher version = Pattern.compile("5\\.3\\.\\d+").matcher(pom);
assertThat(version.find()).describedAs("Expected 5.3.x in %s", pom).isTrue();
return """
<project>
<modelVersion>4.0.0</modelVersion>
Expand Down

0 comments on commit 0ccea84

Please sign in to comment.