我引入(本地内部仓库)第三方二进制插件时,只能在build.gradle中定义吗,能否在脚本插件中定义?
例如:
// ~/Test/helloplugin.gradle
buildscript {
dependencies {
classpath url('http://xxx.com/release/goplugin/gogradle/0.4.2.jar')
}
}
apply plugin: 'com.github.blindpirate.gogradle'
// ~/Test/build.gradle
apply from: 'helloplugin.gradle'
task mainTask << {
println 'I am ' + name
}
我在本地测试时,直接报错,com.github.blindpirate.gogradle插件无法找到。
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…