Gradle Cheat Sheet (10): Dependencies
1. Working with Repositories 添加依赖前,首先要指定获取依赖的Repository。最基本的Repository就是一个放置jar文件的目录,称为Flat Directory Repository。所有关于Repository的配置都在repositories { } 块中进行,对于本地目录,只需添加一个flatDir 块,并指定Repository对应的目录,如添…
Read more
learn, build, evaluate
1. Working with Repositories 添加依赖前,首先要指定获取依赖的Repository。最基本的Repository就是一个放置jar文件的目录,称为Flat Directory Repository。所有关于Repository的配置都在repositories { } 块中进行,对于本地目录,只需添加一个flatDir 块,并指定Repository对应的目录,如添…
Read more
在Gradle中启用Java插件,只需在编译脚本中加入: apply plugin: "java" 此时运行: $ gradle tasks –all 会看到多出许多任务,常用的有assemble 、check 、build 和clean : Task name Depends on Type Description assemble All archive tasks …
Read more