Intellij IDEA not importing dependencies from @Grab in Groovy project

a 夏天 提交于 2019-12-02 17:25:26

As stated by CrazyCoder, Alt + Enter then select Grab the artifacts and Enter

There could be 2 problems interfering with the resolution of the Grab dependencies

  1. Your source code folder has not been marked as "Sources Root". To do that, right click on the folder and select "Mark Directory As" -> "Sources Root"
  2. Your project does not have a valid Project JDK. To do this, hit Ctrl-Alt-Shift-S, select "Project" -> "Project SDK" and give it a Java JDK.

Once these steps are done, you should be able to hit Alt + Enter and then select "Grab the artifacts"

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!