diff --git a/build.gradle b/build.gradle index a3f93c2b4..514dd500d 100644 --- a/build.gradle +++ b/build.gradle @@ -111,27 +111,27 @@ 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("build/libs/") - - if (dir.exists()) { - dir.eachFileRecurse (FileType.FILES) { file -> - //Add each file to the list - list << file - } - - //Print the names of all of the output files - list.each { - println it.getName() - } - } - println "--------------------" - repositories { + //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("build/libs/") + + if (dir.exists()) { + dir.eachFileRecurse (FileType.FILES) { file -> + //Add each file to the list + list << file + } + + //Print the names of all of the output files + list.each { + println it.getName() + } + } + println "--------------------" + if (project.hasProperty("filesmaven")) { logger.info('Publishing to files server')