gradle每次构建都检查依赖是否有变化

  • gradle中添加配置:
configurations.all {
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
    resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
}
  • 依赖项添加配置:changing:true
    implementation group: "group", name: "name", version: "version", changing: true

你可能感兴趣的:(gradle每次构建都检查依赖是否有变化)