Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
273 views
in Technique[技术] by (71.8m points)

buildscript block 能否在script plugin中使用?

我引入(本地内部仓库)第三方二进制插件时,只能在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插件无法找到。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...