Closed NuwanSameera closed 1 year ago
Hi perhaps try adding this in to your build.gradle?
shadowJar { mergeServiceFiles() }
Found from this thread- https://github.com/grpc/grpc-java/issues/5493#issuecomment-478500418
@maitrimangal thank you very much for your answer. I resolved it with maven shade plugin and service files merge transform.
Added detailed answer to my question in https://stackoverflow.com/a/76478906/5607943
I have a maven project with pubsub and I use maven-assembly-plugin to generate a jar file with dependencies.
With pubsub version 1.104.1, the jar file is working properly and I tried to update it to latest version 1.123.13. After updating, my application works as expected with exec-maven-plugin, but the same code is not working with a maven-assembly-plugin-generated jar file.
POM file and Error as follows.
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Error Log
Dependency tree