External dependencies are not imported for a grails-gradle-plugin project

Hello,

When importing a Grails project (which is build in Gradle) to IJ, the external dependencies are not being imported.
Once imported the project is not even recorgnized as a Grails project, however after adding the Grails library to the project properties solves this issue.

IntelliJ 12.1.2
Grails 1.3.7
Gradle 1.5

Am I doing something wrong ?

Thank you in advance for your help
/Lior.

4 comments

Hi Lior,

Is your project open-source? Can I try it at local environment?

Denis

0

Hello Denis,

My project is not an OS, therefore I can not share it. However, the same issue is repreducable with a clean Grails project.
I enclosed a Grails project which has 1 additional dependency on Guava, there is also a simple controller that access Guava classed.
It assembles and run via Gradle but fails to compile in IJ.

Thanks again for your help
/Lior.



Attachment(s):
test-web.zip
0

Hi Lior,

We use gradle api for resolving project info and unfortunately, all I can see for now is that it doesn't return information about compile dependencies.

Fired a gradle bug report - http://forums.gradle.org/gradle/topics/compile_dependency_is_not_exposed_via_the_tooling_api?rfm=1, feel free to vote/watch

Denis

0

Hello Denis,

Thank you for looking into that, I will watch the mentioned Gradle issue.

All the best
/Lior.

0

Please sign in to leave a comment.