From 4dca222938dfa75731ab2b0377702180f9cb5572 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Mon, 2 Jul 2018 13:09:12 +0200 Subject: [PATCH] Don't publish .md5 files --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index f7ca6d4..89a4768 100644 --- a/build.gradle +++ b/build.gradle @@ -123,7 +123,7 @@ if (version.endsWith("SNAPSHOT")) { def auth = new STSAssumeRoleSessionCredentialsProvider.Builder(AWSRoleARN, "JavaBrigadierPublish").build() def s3 = new AmazonS3Client(auth) publishDir.eachFileRecurse { - if (!it.name.contains(".xml") && it.isFile()) { + if (!it.name.contains(".xml") && !it.name.contains(".md5") && it.isFile()) { def relPath = publishDir.toPath().relativize(it.toPath()).toFile().toString().replaceAll('\\\\', '/') uploadFile(s3, "minecraft-libraries", relPath, it) }