// tag::custom-repository[]
repositories {
    maven {
      url 'http://repo.mycompany.com/maven2'
    }
}
// end::custom-repository[]

task checkRepositories {
    doLast {
        assert repositories.size() == 1
        assert repositories[0] instanceof MavenArtifactRepository
        assert repositories[0].url == uri("http://repo.mycompany.com/maven2")
    }
}
