Gradle如何始终使用最新版本的依赖
2016-01-29 16:56
471 查看
By default, Gradle treats a module version (eg "myorg:myproj:1.0") as unchanging over time, allowing us to cache the module meta-data and artifacts indefinitely. If you have a module version that has content (meta-data or artifacts) that can change over time,
you can mark the module as 'changing'.
Normally, Gradle will still cache changing modules for a 24 hour period. You can configure this cache timeout using something like:
you can mark the module as 'changing'.
dependencies { compile group: "group", name: "projectA", version: "1.1", changing: true }
Normally, Gradle will still cache changing modules for a 24 hour period. You can configure this cache timeout using something like:
configurations.all { resolutionStrategy.cacheChangingModulesFor 0, 'seconds' }
相关文章推荐
- 学习使用OpenSSL生成并使用RSA密钥对
- My97DatePicker参数配置方法大全
- Android中Shape、selector在xml中的使用、切换按钮的背景图案
- jquery.dataTable.js 基础配置
- 利用WebViewJavascriptBridge与UIWebView进行交互
- 密码脚本
- swap分区添加
- wmic
- [Redux] Extracting Container Components (FilterLink)
- ASP.NET导出Excel
- Linux netstat命令介绍
- Github上README.md的语法
- visual studio 个性化设置
- Linux Shell概述
- 微信企业号开发(7)--自定义菜单
- Hdfs-site.xml配置说明
- Processing 贪吃蛇
- Android Studio 导入和关联SVN项目
- JavaSE入门学习17:Java面向对象之package(包)
- jquery.datatables中文语言设置