API 文档 | BuildCacheConfiguration |
---|
整个 Gradle 构建的构建缓存配置。
void
local
(Action
<? super DirectoryBuildCache
>
configuration)
Action
<? super DirectoryBuildCache
>对本地配置执行给定操作。
使用给定类型配置远程缓存。
如果已经使用不同类型配置了远程构建缓存,此方法将替换它。
如果已经使用相同类型配置了远程构建缓存,此方法将配置它。
默认情况下,远程构建缓存中的存储(“push”)是禁用的。
void
remote
(Action
<? super BuildCache
>
configuration)
Action
<? super BuildCache
>对当前配置的远程缓存执行给定操作。