-
Notifications
You must be signed in to change notification settings - Fork 40.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependency management brings an invalid combination of HttpCore5 and HttpClient5 #43113
Comments
It looks like a duplicate of spring-projects/spring-framework#33806 Can you try with Framework SNAPSHOTs and report back? |
This doesn't seem to be the same issue. Apache HttpClient 5.3.1 is built with HttpCore5 version 5.2.4. However, in the Gradle file with dependency information on the Spring Boot 3.3.x branch, it specifies version 5.2.5. Although the build succeeds without issues, it's stressful to keep seeing those red underlines in IntelliJ while working. Please compare and verify the versions in the two links below. https://mvnrepository.com/artifact/org.apache.httpcomponents.client5/httpclient5/5.3.1 |
Thanks for your feedback. I'm still not sure I understand this case. Thanks |
I just created a sample project and uploaded it to my GitHub repository. Please download it from the link below and check it out. When you open the project in IntelliJ and open the HttpClient5ClientFactory.kt file, you should definitely see the red underlines. You'll also see the httpcore5 version listed as 5.2.5 in the dependencies. Then, open the build.gradle.kts file and comment out all Spring-related plugins. Rebuild with Gradle, and you’ll notice that the red underlines are gone, and the httpcore5 version has reverted to 5.2.4. It seems that version 5.2.5 had some changes related to the minimum and maximum JDK versions, which might be causing this issue. I don't have the time to analyze it further. :( Sorry I couldn't be of more help. |
@donguseo why is this closed? |
I considered it a Spring Boot issue, but it was transferred to the Spring Framework, and after that, I received no further feedback on the problem I raised. I closed the issue because it seemed you weren't taking it seriously. I don't intend to raise this issue again. The quickest solution would be for me to simply use Spring Boot 3.3.1, so it's not a major problem for me. Alternatively, I could resolve it by setting up a separate module for the part that uses Apache HTTP Core and adjusting dependencies accordingly. Even if there’s a red line, it still builds fine, so it’s not critical—just inconvenient. If you consider my inconvenience a significant issue, I’d appreciate it if you could address it; otherwise, please feel free to disregard it. |
We'll have a look. 19 hours is a very short amount of time to consider an issue as disregarded. I will move back this issue to Spring Boot if it turns out to be a bug there. |
I was too hasty. |
Thanks for the sample. Looking at what makes it work based on your description, force downgrading HttpCore5 to
However, I am not sure what the error comes from. Yes the IDE shows an error for me as well but compilation works. Looking at the changelog between 5.2.4 and 5.2.5 I don't see a change that would lead to this problem. At this point, it looks like an error in the IDE. @donguseo can you make the sample actually fail outside of the IDE? Something like compilation that does not work or an error at runtime? |
The IDE does not show an error for the same code written in Java. @sdeleuze does that ring any bell? |
@snicoll Outside of the IDE, there were no problems. The code compiled well, and the functionality worked as expected. Since it’s still in development, I haven't seen any issues in the production environment. I also checked the changes in httpcore5’s code, and nothing stood out as a significant problem. If you find out why this issue occurred, I’d appreciate any additional comments. |
@donguseo alright, thanks for confirming. Please report this issue to https://youtrack.jetbrains.com/issues. I am going to close this one but feel free to add a link to the issue you've created so that we can follow along. |
I use spring boot 3.3.3.
There is a dependency problem in spring boot 3.3.3.
And I think #41374 update may casue this problem.
The text was updated successfully, but these errors were encountered: