Repo syntax for gradle 2.0


(jim northrop) #1

in preparation for gradle 2.0, can’t quite get the syntax for repo’s. i’m trying this:

project.ext {
 artifactUrls
= "http://repository.jboss.org/maven2/"
}
repositories {
    mavenCentral()
    //add repositories for optional dependencies
    mavenRepo urls: [artifactUrls]
}

// ----------------------------- plus several variations, but no joy - any ideas ? thx


#2
repositories {
    mavenCentral()
    maven { url artifactUrls }
}