Skip to content
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

Disable md5 publishing #164

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
algorithm="MD5"
id="md5"
priority="-2000"
publish="false"
warnInsecure="true">
</artifactChecksum>
</extension>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;

import java.io.File;
Expand Down Expand Up @@ -39,8 +40,7 @@ public void testChecksums() throws IOException {
Collections.emptyList());
assertTrue(status.toString(), status.isOK());
String md5sum = hashMap.get("md5");
assertNotNull("MD5 was not computed!", md5sum);
assertEquals("MD5 mismatch", "25b68bb92a7a77238bd60ad5e21bb91f", md5sum);
assertNull("MD5 was computed but should be disabled!", md5sum);
String sha256sum = hashMap.get("sha-256");
assertNotNull("SHA256 was not computed!", sha256sum);
assertEquals("SHA256 mismatch", "39d083c8c75eac51b2c4566cca299b41cc93d5b0313906f5979fbebf1104ff49", sha256sum);
Expand Down