美文网首页
问题:Task ‘run’ not found in root

问题:Task ‘run’ not found in root

作者: zheting | 来源:发表于2018-01-10 22:01 被阅读494次

问题现象:

Task 'run' not found in root project 'springframework'.

问题现象

问题原因:
没有在gradle.build文件中添加如下配置
···
apply plugin: 'application'
mainClassName = 'hello.HelloWorld'
···
注意: mainClassName 是 application 的一个属性,需要一起使用。

类似问题:
https://discuss.gradle.org/t/task-run-not-found-in-root-project/12130

I figured it out: my gradle.build did not have the line
apply plugin: 'application'

相关文章

网友评论

      本文标题:问题:Task ‘run’ not found in root

      本文链接:https://www.haomeiwen.com/subject/ixyanxtx.html