3

When trying to run the idea plugin for my gradle project, a number of my intellij libraries are in error with Library: 'gradle: unresolved_dependency_blah_blah' has broken classes path. the library itself is marked as "unresolved dependencies"

My gradle project is a multi module, I have applied the idea plugin to allprojects.

Intellij version is #IU-134.1007

gradle version is 1.11

Any help would be appreciated.

UPDATE: these are an example of some of the dependencies i have:

apply plugin: 'groovy'
dependencies {
 compile 'org.eclipse.jgit:org.eclipse.jgit:3.2.0.201312181205-r'
 compile 'org.codehaus.groovy:groovy:2.2.1'
 testCompile 'org.junit:junit:4.11'
}

all three have the errors

asked Feb 17, 2014 at 7:13
3
  • 1
    You'd have to provide more details, such as which exact dependencies can't be resolved. It could mean that you didn't declare any repositories, misspelled the dependencies, the dependencies don't exist, etc. gradle build would likely fail in such a case. Commented Feb 17, 2014 at 7:18
  • I have adjusted the question with my failing examples Commented Feb 17, 2014 at 7:24
  • And what if you use gradle from the command line? Does it succeed then? Commented Feb 17, 2014 at 7:26

1 Answer 1

7

Solved...

The issue was that i had not declared any repositories. (thank you peter)

adding the following to my root project resolved the dependencies correctly:

allprojects {
 repositories { mavenCentral() }
}
answered Feb 17, 2014 at 7:27
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.