-
Notifications
You must be signed in to change notification settings - Fork 30
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
Update ktor an kotlin dependencies #30
Conversation
Updated ktor to latest version. Fixed exception raised in kotlin usage sample: Exception in thread "main" java.lang.IllegalArgumentException: Engine doesn't support WebSocketCapability.
This update makes it possible to use this library together with Spring Boot. Tested with spring 2.5.5 |
@mmoghaddam385 Hi, requesting a review, please :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fantastic thank you very much for putting the time in to do this! I pulled the branch and made sure the samples still work so that's good, I would like to hear your thoughts on whether or not these version bumps introduce a breaking change or not.
Unfortunately I don't have the time right now to spend deep-dive into the changelogs between the kotlin and ktor versions, but as far as I know they should be using semantic versioning so theoretically there shouldn't be any breaking changes introduced. For that reason I'm fairly confident in releasing these changes under a minor version bump and not a major version bump, but let me know if I'm wrong on that.
Also if you'd be willing we'd absolutely love if you could add some sample code for using this library with spring boot (not in this PR necessarily).
There could be breaking changes. And as far as example will not work anymore, there is a high chance that someone`s code will break. |
I am not sure if it's needed anymore :) Java example fits fine for spring. I guess people asked for that example as spring app was failing to start with pretty advanced exception, making it harder to understand what`s wrong and how to fix that. |
Even better! Btw out of curiosity, do you use gradle or maven (or something else) when using this library with spring boot? |
Ah good point. I'll release this as a major version update. |
I am using gradle, there shouldn't be problems with maven as well. The actual problem was that spring has found |
@vadims-grusas is there a workaround for this in the meantime? |
You may use my fork using jitpack, I go with that approach, while this is not merged. |
Hey just wanna say thanks, tried your fork, and now my spring boot app works! |
@mmoghaddam385 what's remaining to merge/release this PR? |
Apologies for the inaction here. Before merging this I would like the issue breaking the sample code to be addressed.
I would be fine with the solution being to use a different engine in the example since the CIO engine is experimental. The Kotlin example uses the CIO engine just to illustrate how you might provide your own engine, it doesn't have to be that one in particular. Unfortunately I still don't have time to work on this first hand, but once the sample are working I'll be happy to merge and release these changes as a major version update. |
@mmoghaddam385 Hi, sample is working, do you wan't to add an example of how to provide custom http client? |
Ah you're right, sorry I completely missed that you had already done this. Don't worry about showing an example of a custom http client. I'll merge and release this under v3.0.0 Thanks for you patience and for doing all of this in the first place! |
Updates are based on #27