Cannot grab Grapes because Ivy is missing... while it is present as Global Library

Answered

I am using IntelliJ IDEA Ultimate 2017.3.4 (latest build)

When hitting Alt+Enter on the Grapes below, I am getting an error message claiming that ivy is not in my dependencies:

@Grapes([
@Grab(group='org.yaml', module='snakeyaml', version='1.17')
])

Error message: "Sorry, but IDEA cannot @Grab the dependencies without Ivy. Please add Ivy to your module dependencies and re-run the action."

But ivy is in my global libraries:

$ grep -rl ivy .
./.idea/workspace.xml
./.idea/libraries/org_apache_ivy_ivy_2_4_0.xml
./jenkins.iml
./lib/ivy-2.4.0-sources.jar
./lib/ivy-2.4.0.jar
./lib/ivy-2.4.0-javadoc.jar

How can I make IDEA grab the artifact?

 

0
1 comment

Hi, adding Ivy to the project with https://www.jetbrains.com/help/idea/2016.3/downloading-libraries-from-maven-repositories.html should be enough. Could you please share a project to reproduce a problem?

0

Please sign in to leave a comment.