start

Self-contained io.grpc gRPC OSGi Bundle

I've started to create this gRPC OSGi self-contained bundle to be able to use the gRPC libraries for my next private project which I plan to do.
GitHub: https://github.com/alexejsailer/grpc-osgi
To build this project run:

mvn clean install

Copy your built bundle from the target folder and copy all below mentioned dependencies from maven or use the following command if you are using karaf:

bundle:install mvn:com.google.protobuf/protobuf-java/3.12.4
bundle:install mvn:com.google.protobuf.nano/protobuf-javanano/3.1.0
bundle:install mvn:io.grpc/grpc-osgi/1.31.1

You will now be able to start a complete grpc server in a separate custom bundle. Therefore, you should define your proto file first and generate java code form it. I will provide an example on demand.
It is not a bundle which you should use in production, as I am not 100% sure whether all dependencies are resolved correctly. Please let me know if you run in any issues.

  • start.txt
  • Last modified: 2020/03/05 21:23
  • by 127.0.0.1