On 30/12/2011, at 8:00 AM, shadowlaw wrote:

> actually i can compile any maven project correctly without any troubles
> here are the build file for the others modules
> 
> 
> repositories{
>    mavenCentral()
> }
> 
> dependencies{
>    compile 'commons-codec:commons-codec:1.5'
> }
> 
> and 
> 
> apply plugin : 'java'

Are you sure this is all of the build scripts? In your previous error message, 
there's a dependency from the root project to the :codec project.

I suspect you're running into http://issues.gradle.org/browse/GRADLE-1940. You 
need to have a repository definition in each build script, or add something 
like this to the root build script:

allprojects {
    repositories {
        mavenCentral()
    }
}


--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com

Reply via email to