问题描述
如果我没记错的话 gradle assemble 确实运行 gradle assembleDebug 和 gradle assembleRelease,但我相信 gradle build 也一样,那么它们两者有什么不同呢?
If I am not wrong gradle assemble does run gradle assembleDebug and gradle assembleRelease, but I believe gradle build also does the same, so what are the different between them both?
推荐答案
assemble 将构建您的工件,而 build 将通过额外检查组装您的工件.
assemble will build your artifacts, and build will assemble your artifacts with additional checks.
build 依赖于 assemble,所以 build 是 assemble
build depends on assemble, so build is sort of a superset of assemble
您可以使用 --dry-run 标志查看将要执行的任务.例如
You can have a look on the tasks that will be executed by using the --dry-run flag. e.g.
gradlew build --dry-run
你会看到除了assemble之外,lint和test也会被执行.
You will see that apart from assemble also lint and test will be executed.
这篇关于gradle assemble 和 gradle build 任务有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)