Gradle issue Could not expand ZIP

HI,

Can anyone please help.I’m new to gradle while building getting error as "Execution failed for task ‘:claimsbatches:unpackFiles’. org.gradle.api.GradleException: Could not expand ZIP ‘/mnt/app/teamcityagent_user_home/.gradle/caches/modules-2/files-2.1/fineos/claims/claimsbatches/8.2.13_DI/3006b1e7fee73d507b1e2863a04707c11b1368ab/claimsbatches-8.2.13_DI.zip’.

Below is my task:

task unpackFiles(type: Copy) {
project.configurations.zipArchive.asFileTree.each {
from(zipTree(it))
}
into ‘build/tmp/zip/envs’
duplicatesStrategy = DuplicatesStrategy.EXCLUDE

eachFile { file ->
   if (file.path.endsWith('.xml')) {
        filter { line ->

            line.replace('%SecSchemaURL%', 'TemplateDefaultSecurityDatabaseURL')
                .replace('%AppSchemaURL%', TemplateDefaultBPMDatabaseURL)
                .replace('%SecUsername%', TemplateDefaultSecurityDatabaseUser)
                .replace('%AppUsername%', TemplateDefaultBPMDatabaseUser)
                .replace('%SecPassword%', TemplateDefaultSecurityDatabaseUser)
                .replace('%AppPassword%', TemplateDefaultBPMDatabasePassword)
                .replace('%DatabaseDriver%', oracle.jdbc.OracleDriver)
        }
    }

}

}

Hey, i’m facing the same issue, You got any solution for this?

Can you post your Copy task? I’m guessing it’s different from the OP’s script