我使用 Gradle 来管理 Groovy 项目。 Groovy 设置为 1.8.6,然后我想切换到 Groovy 2.0。当我这样做时,我得到:
:compileGroovy
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileGroovy'.
> groovy/util/AntBuilder
如果我从 STS 或命令行运行它,也会发生同样的事情。
有什么我想念的想法吗?
最佳答案
Ant 支持现在位于一个单独的模块中。您需要添加对 groovy-ant
的依赖项也。
关于groovy - 切换到 Groovy 2.0 时 Gradle 中的 ClassNotFoundException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11374157/