我有一个 build.gradle 文件(来自手册中的自定义插件示例),内容如下:
apply plugin: 'groovy'
dependencies {
compile gradleApi()
compile localGroovy()
}
但是当我跑步时,我得到:
$ gradle build
:compileJava UP-TO-DATE
:compileGroovy
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileGroovy'.
> You must assign a Groovy library to the 'groovy' configuration.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
知道我缺少什么吗?