在IntelliJ IDEA中配置Groovy SDK [英] Configuring Groovy SDK within IntelliJ IDEA
问题描述
我正在运行IntelliJ IDEA 2017.2.3.我通过Homebrew(OS X)安装了Groovy 2.4.12.当打开Groovy源文件(或Jenkinsfile
)时,得到以下信息:
I am running IntelliJ IDEA 2017.2.3. I installed Groovy 2.4.12 via Homebrew (OS X). When I open a Groovy source file (or a Jenkinsfile
), I get the following:
未为模块'my-module'配置Groovy SDK. . . . . 配置Groovy SDK ...
单击配置Groovy SDK ..."会将我带到以下对话框:
Clicking "Configure Groovy SDK..." leads me to the following dialog:
我尝试点击创建..."并选择许多与Groovy相关的文件夹和可执行文件,但没有任何效果.
I tried hitting "Create..." and selecting many different Groovy-related folders and executables, but nothing works.
如何使IntelliJ IDEA接受我的Groovy SDK?
How can I get IntelliJ IDEA to accept my Groovy SDK?
推荐答案
IntelliJ IDEA希望使用标准Groovy SDK布局,该布局随
IntelliJ IDEA expects the standard Groovy SDK layout which is provided with the official distributions available at http://groovy-lang.org/download.html. Just download, unpack into any directory, specify this directory as the library home.
自制程序包的布局可能有所不同,但是在某些情况下,它在libexec
子目录中可能具有标准布局.尝试/usr/local/opt/groovy/libexec
.
Homebrew package layout may be different, however it may have the standard layout in the libexec
subdirectory in some cases. Try /usr/local/opt/groovy/libexec
.
这篇关于在IntelliJ IDEA中配置Groovy SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!