From c2ba2f640230117a4814b78acbc26ffa959ef11b Mon Sep 17 00:00:00 2001 From: Adubbz Date: Thu, 17 Dec 2015 17:31:18 +1100 Subject: [PATCH] Attempting to fix changelogs --- build.gradle | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/build.gradle b/build.gradle index 712024847..1e3fc6cd7 100644 --- a/build.gradle +++ b/build.gradle @@ -106,9 +106,28 @@ artifacts { archives deobfJar } +import groovy.io.FileType + uploadArchives { dependsOn 'build' + //This is needed by the Groovy Postbuild to append labels for each build used in the changelog. + println "Output files:" + println "--------------------" + def list = [] + + def dir = new File("${WORKSPACE}/build/libs") + dir.eachFileRecurse (FileType.FILES) { file -> + //Add each file to the list + list << file + } + + //Print the names of all of the files + list.each { + println it.getName() + } + println "--------------------" + repositories { if (project.hasProperty("filesmaven")) { logger.info('Publishing to files server')