Cannot Setup Groovy Library with IntelliJ

Answered

Hi,

I tried to set up Groovy library with IntelliJ but I keep getting error: Failed to Create Library - Looks like Groovy distribution in specified path is broken. Cannot determine version.

I installed Groovy through Homebrew on my Mac -- brew install groovy

Mac OS X version: El Capitan 10.11.6

IntelliJ version: 2017.1 Community Edition

Groovy version: 2.4.10

GROOVY_HOME: /usr/local/opt/groovy/libexec

I tried pointing the library to the location specified in value of GROOVY_HOME.

Can anyone help? Any suggestion?

0
8 comments
Avatar
Permanently deleted user

Same here. When I choose path /usr/local/opt/groovy/libexec, the error is prompted, and I choose path /usr/local/opt/groovy/libexec/lib, nothing happened, no message and no library created.

1

Please use Groovy 2.4.9 until the fix is released with 2017.1.1 update: https://youtrack.jetbrains.com/issue/IDEA-170022.

4
Avatar
Permanently deleted user

Got the same issue. Using Groovy 2.4.9 resolves the issue for me.

0
Avatar
Permanently deleted user

Unfortunately, I do not see a way to download the 2.4.9 release of Groovy. The website only appears to allow download of 2.4.10 and this is the first time that I am installing Groovy and I don't have any older versions. When will the update be coming out?

Thanks.

-Thomas

0

You can download any Groovy version here: https://dl.bintray.com/groovy/maven/.

Update for IntelliJ IDEA will be available in a couple of weeks.

0
Avatar
Permanently deleted user

Simply make a copy of a groovy-2.4.10.jar to groovy.jar
After the setup of a Global Library is complete delete groovy.jar 

4
Avatar
Permanently deleted user

I'm having exactly this same issue with the newest version o intellij. Reverting back to groovy 2.4.9 works anything above will not be discovered by intellij. My version:

IntelliJ IDEA 2017.2.6
Build #IU-172.4574.11, built on November 13, 2017

0

It's not the same issue, please report at https://youtrack.jetbrains.com/issues/IDEA with more details.

0

Please sign in to leave a comment.