coderatchet
coderatchet

Reputation: 8428

gradle idea plugin: libraries marked as "unresolved dependencies"

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

Upvotes: 3

Views: 6385

Answers (1)

coderatchet
coderatchet

Reputation: 8428

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() }
}

Upvotes: 7

Related Questions