(1)project
的build.grade
中添加maven
地址和classpath
buildscript {
repositories {
jcenter()
maven {
url "https://github.com/raw/yyanjun/YCollectPluginMaven/master"
}
}
dependencies {
...
classpath 'com.codeless:collect-gradle-plugin:1.0.0'
...
}
}
(2)app
的build.grade
中添加
// 引用远程maven仓库的插件
apply plugin: 'com.codeless'