将依赖项添加到 .gradle 文件后,我们的构建服务器开始出现以下问题:
FAILURE: Build failed with an exception.
* What went wrong:
Could not open buildscript class cache for build file '/u01/apps/.jenkins/workspace/[path name snipped]/build.gradle' (/home/[username]/.gradle/caches/1.3/scripts/build_5jii90b0hvl37q9m8vfhik495b/ProjectScript/buildscript).
> java.io.EOFException
我们能够通过清除构建从站上的 gradle 缓存来解决它。但是,我担心这只是一个临时修复,它可能会再次出现。有没有更好的方法来解决这个问题?