gradle每次构建都检查依赖是否有变化
2020-04-21 本文已影响0人
glzlaohuai
- gradle中添加配置:
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
}
- 依赖项添加配置:
changing:true
:
implementation group: "group", name: "name", version: "version", changing: true