From 26e4002b7179e36bbdc756a634686d3f003dee06 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Thu, 17 Dec 2015 18:44:55 +1100 Subject: [PATCH] Still not working.... --- build.gradle | 44 ++++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/build.gradle b/build.gradle index 514dd500d..d0acf6e63 100644 --- a/build.gradle +++ b/build.gradle @@ -100,6 +100,30 @@ task deobfJar(type: Jar) { classifier = 'deobf' } +task listOutputs << { + //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 "--------------------" +} + +tasks.listOutputs.dependsOn('build') + artifacts { archives changelog.output archives sourcesJar @@ -112,26 +136,6 @@ uploadArchives { dependsOn 'build' 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')