ok ig lets try this
This commit is contained in:
parent
18915372d0
commit
e46204f939
|
@ -127,14 +127,13 @@ fun registerTasks(project: Project) {
|
||||||
zip.destinationDirectory.set(project.buildDir)
|
zip.destinationDirectory.set(project.buildDir)
|
||||||
|
|
||||||
it.doLast { task ->
|
it.doLast { task ->
|
||||||
extension.fileSize = task.outputs.files.singleFile.length()
|
try {
|
||||||
task.logger.lifecycle("Made Cloudstream package at ${task.outputs.files.singleFile}")
|
extension.fileSize = task.outputs.files.singleFile.length()
|
||||||
}
|
}
|
||||||
|
catch(Exception e) {
|
||||||
it.finalizedBy {
|
|
||||||
if (extension.fileSize == null) {
|
|
||||||
extension.fileSize = -1L
|
extension.fileSize = -1L
|
||||||
}
|
}
|
||||||
|
task.logger.lifecycle("Made Cloudstream package at ${task.outputs.files.singleFile}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue