Robert Winch wrote:
> 
> Could do you something like this in the init.gradle to conditionally add
> the flatDir repo:
> 
> beforeProject( { project ->
>     if(project.name == 'myProject') {
>         // add the repo
>     }
> })
> 

Good idea! This should work:

beforeProject { project ->    
    if (project.name == 'myProject') {
        // add flatDir repo here
    }

    // add Artifactory repo here    
}

--
Peter Niederwieser 
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradle Inc.
http://www.gradle.biz
Creator, Spock Framework
http://spockframework.org

-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/Changing-gradle-repository-resolution-order-tp3397007p3397220.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to