Repo syntax for gradle 2.0

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

repositories {
    mavenCentral()
    maven { url artifactUrls }
}