Skip to content

Kotlin support #170

@genuss

Description

@genuss

Hi, team!
Let me express my appreciation for this project. I'm glad to see that spring-grpc is becoming part of the official Spring portfolio. I've been following this project for quite some time, and to be honest - I like it more and more. Congratulations on its promotion to a full member!

I'm interested, if there are plans for a better kotlin support. Having tried some basics I found #164 by myself and here. Another issue I found is that kotlin coroutines stubs aren't supported due to lack of a proper StubFactory. I created it and wanted to contribute, but I'd like to ask your opinion on the shape of my change. Putting the new factory in StubFactory's package means that kotlin dependencies must be added to spring-grpc-core artifacts. I guess it's not desirable at least at the moment. That's why I'm asking a couple of questions:

  • Do you plan for better kotlin support?
  • How would you implement it: a separate artifact like spring-grpc-kotlin, a number of artifacts for client and server, or directly in spring-grpc-core with optional kotlin dependencies?

With these questions answered it would be possible to kickstart some development. I've already got a couple of features on my mind: coroutine stubs, suspending exception handlers, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions