Compare commits

...

1 commit

Author SHA1 Message Date
Nathan Adams
349458cc17 Don't publish .md5 files 2018-07-02 13:09:29 +02:00

View file

@ -123,7 +123,7 @@ if (version.endsWith("SNAPSHOT")) {
def auth = new STSAssumeRoleSessionCredentialsProvider.Builder(AWSRoleARN, "JavaBrigadierPublish").build() def auth = new STSAssumeRoleSessionCredentialsProvider.Builder(AWSRoleARN, "JavaBrigadierPublish").build()
def s3 = new AmazonS3Client(auth) def s3 = new AmazonS3Client(auth)
publishDir.eachFileRecurse { 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('\\\\', '/') def relPath = publishDir.toPath().relativize(it.toPath()).toFile().toString().replaceAll('\\\\', '/')
uploadFile(s3, "minecraft-libraries", relPath, it) uploadFile(s3, "minecraft-libraries", relPath, it)
} }