随笔分类 - Gradle
Gradle
摘要:I noticed that the quite often problem I face when I work with Gradle is tasks ordering (either existing or my custom ones). Apparently my build works...
阅读全文
摘要:In the Part 1 we talked about tasks and different stages of the build lifecycle. But after I published it I realized that before we jump into Gradle s...
阅读全文
摘要:With this post I would like to start series of Gradle related topics I wish I knew when I first started writing Gradle build scripts.以这篇博客开始,我将写一系列关于G...
阅读全文
摘要:Manifest DSL提供了配置以下Manifest条目的功能: minSdkVersion / targetSdkVersion / versionCode / versionName / applicationId / Instrumentation test runner an...
阅读全文
摘要:Build Tasks在build文件中使用了Android或者Java插件之后就会自动创建一系列可以运行的任务。Gradle中有如下一下默认约定的任务: assemble 该任务包含了项目中的所有打包相关的任务,比如java项目中打的jar包,Android项目中打的apk check 该任务包...
阅读全文
摘要:使用gradle的目的更容易重用资源和代码;可以更容易创建不同的版本的程序,多个类型的apk包;更容易配置,扩展;更好的IDE集成;Gradle基本结构使用ide创建的gradle构建的项目,会自动创建一个build.gradle,如下:buildscript { repositories {...
阅读全文