BuildCacheConfiguration

整个 Gradle 构建的构建缓存配置。

属性

属性描述
local

本地目录缓存配置。

remote

远程缓存配置。

方法

方法描述
local(configuration)

对本地配置执行给定操作。

remote(type)

使用给定类型配置远程缓存。

remote(type, configuration)

使用给定类型配置远程缓存。

remote(configuration)

对当前配置的远程缓存执行给定操作。

脚本块

无脚本块

属性详情

DirectoryBuildCache local (只读)

本地目录缓存配置。

BuildCache remote (只读)

远程缓存配置。

方法详情

void local(Action<? super DirectoryBuildCache> configuration)

对本地配置执行给定操作。

T remote(Class<T> type)

使用给定类型配置远程缓存。

如果已经使用不同类型配置了远程构建缓存,此方法将替换它。

默认情况下,远程构建缓存中的存储(“push”)是禁用的。

T remote(Class<T> type, Action<? super T> configuration)

使用给定类型配置远程缓存。

如果已经使用不同类型配置了远程构建缓存,此方法将替换它。

如果已经使用相同类型配置了远程构建缓存,此方法将配置它。

默认情况下,远程构建缓存中的存储(“push”)是禁用的。

void remote(Action<? super BuildCache> configuration)

对当前配置的远程缓存执行给定操作。