Open
Description
Issue Summary
Looks like you should reopen #631.
Can't deploy with sendgrid-java dependency to Google Cloud Functions with error message:"Invalid signature file digest for Manifest main attributes"
Without sendgrid-java
it deploys successfully. So the issue is definitely with your artifact or its dependencies.
Steps to Reproduce
Add dependency on sendgrid-java (4.7.0) and try to deploy to Google Cloud Functions with shade plugin.
Here is shade plugin Maven config:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<outputFile>${project.build.directory}/deployment/${project.build.finalName}.jar
</outputFile>
<transformers>
<!-- This may be needed if you need to shade a signed JAR -->
<transformer
implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
<resource>.SF</resource>
<resource>.DSA</resource>
<resource>.RSA</resource>
</transformer>
<!-- This is needed if you have dependencies that use Service Loader. Most Google Cloud client libraries does. -->
<transformer implementation=
"org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
Technical details:
- sendgrid-java version: 4.7.0
- java version: 11