简体   繁体   English

用gradle构建java项目

[英]Building java project with gradle

I am following this tutorial : https://spring.io/guides/gs/gradle/ . 我正在关注本教程: https : //spring.io/guides/gs/gradle/ I did everything until the part where I need to add the following line to build.gradle : 我做了一切,直到需要在build.gradle中添加以下行的部分为止:

apply plugin: 'java' 

When I run gradle tasks in cmd I get the following error : 当我在cmd中运行gradle tasks ,出现以下错误:

Failed to apply plugin [id 'org.gradle.java']`> org.gradle.invocation.DefaultGradle_Decorated cannot be cast to org.gradle.api.internal.project.ProjectInternal". 

I couldn't find an answer online . 我无法在线找到答案。

当我将build.gradle内容错误地放入settings.gradle时,我遇到了同样的问题...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM