bindableService issue with grpc-java

后端 未结 2 976
故里飘歌
故里飘歌 2021-01-28 06:13

I am trying to use grpc-java v1.1.2 (build.gradle section below) but when I try to run the fat jar for the sample application, its throwing the exception given below. I do not s

2条回答
  •  轮回少年
    2021-01-28 06:34

    The issue for me was, jar did not contain the dependent lib classes. I had to make this change to resolve it :

    jar {
        ...
        from {
            configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
        }
    }
    

    Which is just another way to create fat jar :)

提交回复
热议问题