grpc-spring icon indicating copy to clipboard operation
grpc-spring copied to clipboard

Add spring-native support

Open lgklein opened this issue 4 years ago • 6 comments

Is there any idea to make this project AOT compliant (spring-native)?

Today I can make it work without problems, but still in runtime and not buildtime.

lgklein avatar Aug 30 '21 19:08 lgklein

I really would love to have spring native support.

ST-DDT avatar Aug 31 '21 13:08 ST-DDT

I open one issue on stackoverflow for this problem https://stackoverflow.com/questions/68639801/spring-native-erro-on-execute-builded-image

thukabjj avatar Sep 24 '21 17:09 thukabjj

Hi, do we have any news in this case? Where I work we would also like to use this framework as AOT.

titiuhay avatar Jul 09 '22 11:07 titiuhay

Sorry, I currently don't have a lot of time to dive into this. I did manage to compile it with graalvm, but for some reasons the calls didn't get processed properly, before I ran out of time. I'm still interested in it though.^^

ST-DDT avatar Jul 09 '22 11:07 ST-DDT

Glad to know this issue is still of interest!

AOT is being built right into spring framework 6.0 (spring boot 3.0), maybe it's a good time to prioritize this idea.

Related to the problem you had when you tried to compile, maybe it's related to using the child context application? Spring-open-feign (spring cloud) has a similar issue, reported in the issues https://github.com/spring-projects-experimental/spring-native/issues/766 and https://github.com/spring-projects/spring-framework/issues/28486...

lgklein avatar Jul 09 '22 12:07 lgklein

See my comments in https://github.com/yidongnan/grpc-spring-boot-starter/issues/778#issuecomment-1342768872. There's a link to a sample there.

dsyer avatar Dec 08 '22 13:12 dsyer