Added existence check for libs directory
This commit is contained in:
parent
e9f2018afe
commit
b3620d8cfc
1 changed files with 10 additions and 7 deletions
|
@ -117,6 +117,8 @@ uploadArchives {
|
||||||
def list = []
|
def list = []
|
||||||
|
|
||||||
def dir = new File("build/libs/")
|
def dir = new File("build/libs/")
|
||||||
|
|
||||||
|
if (dir.exists() {
|
||||||
dir.eachFileRecurse (FileType.FILES) { file ->
|
dir.eachFileRecurse (FileType.FILES) { file ->
|
||||||
//Add each file to the list
|
//Add each file to the list
|
||||||
list << file
|
list << file
|
||||||
|
@ -126,6 +128,7 @@ uploadArchives {
|
||||||
list.each {
|
list.each {
|
||||||
println it.getName()
|
println it.getName()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
println "--------------------"
|
println "--------------------"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|
Loading…
Reference in a new issue