Attempting to fix changelogs

This commit is contained in:
Adubbz 2015-12-17 17:31:18 +11:00
parent 0314c2a42a
commit c2ba2f6402
1 changed files with 19 additions and 0 deletions

View File

@ -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')