-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sign sendgrid-java-x.x.x.jar #659
Comments
@thinkingserious please take a look |
Hello @artieshevchenko, Thanks for taking the time to report this! I just downloaded the most recent jar from Maven and ran This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog. In the mean time, here may be a work around. With best regards, Elmer |
I have also experienced this issue with the sendgrid-java.jar with all of the dependencies.
The problem appears to be the inclusion of bouncy castle inside the fat jar file, as it includes signing files (.SF, .RSA) that originated there, and now don't correspond with the jar. Removing those files from the jar will fix this error, however, In my current application I still experience (different) problems with the inclusion of that jar, probably due to bouncy castle - so I can't say for sure if this workaround is sufficient. Due to the dependency on Bouncy Castle, I recommend that you distribute the send-grid and its dependencies all separately (say as a zip file) as this will avoid the signing problems described in this issue, and also make it easier for people to include the jar in their project without conflicting with their other libraries. |
After some further experimentation, I believe that the bouncy castle dependency should be removed entirely, or have its scope changed to "test" because:
If I remove the bouncy castle jar from the classpath, then the problem goes away. Workaround for those Using MavenFor those using Maven, you can filter this out in the dependency using the following snippet in your pom.xml file.
Only after doing this, does the sengrid jar work property without conflicting with other libs. |
Thanks @shannah for your research and the workaround! |
I ran into this same problem. Thanks to @shannah I was able to remove bouncycastle from the jar build and now it works! This really should be fixed! |
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:
Technical details:
The text was updated successfully, but these errors were encountered: