Reputation: 2996
How does the checksum generation work when publishing artifacts to maven repository (using mvn deploy plugin or gradle maven-publish plugin)? Is it the plugin or the remote repository host that generates the checksum?
If the remote repository generates the checksum, how to verify that the artifact was uploaded "safely" to the remote repository?
Upvotes: 4
Views: 2060
Reputation: 97348
I can't tell you something about how Gradle Plugin works but I can tell you how it works for Maven.
maven-deploy-plugin/maven-install-plugin version 2.X
maven-deploy-plugin/maven-install-plugin version 3.X
This means the checksums are generated during the build process (on the local machine whoever this is) and not on the server machine (remote repository host).
The verification should be turned on via settings.xml
(checksumPolicy)
Upvotes: 1