我有这个错误: ERROR
我检查了我的Eclipse偏好/ Gradle,并且Gradle目录设置得很好。
此外,当我尝试刷新项目时,我的控制台中出现此堆栈错误:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\java\admin\build.gradle' line: 6
* What went wrong:
A problem occurred evaluating project ':admin'.
> Failed to apply plugin [class 'com.github.jengelman.gradle.plugins.shadow.ShadowJavaPlugin']
> Could not create task of type 'ShadowJar'.
你知道这里发生了什么吗?
谢谢!
答案 0 :(得分:15)
Gradle 2.11破坏了与shadowjar 1.2.2版的兼容性。您可以通过更新到shadowjar 1.2.3版来解决此问题。
来源:https://github.com/johnrengelman/shadow/commit/918a649b608f34dc0902d8d7aba21326ae5dfe8d