maven - how to specify multiple mavenRepo's in build.gradle? -


i use multiple mavenrepo's in build:

  repositories {     mavenlocal()     mavencentral()     mavenrepo {       url: "http://cloudant.github.io/cloudant-sync-eap/repository/"        url: 'https://github.com/snowch/sync-android-p2p/raw/master/repository/'       }   } 

however, build fails error similar this:

> not find method mavenrepo() arguments [...] on repository container. 

how can specify multiple mavenrepo's?


note: i'm using old version of gradle , therefore need use deprecated mavenrepo statement.

according official gradle 1.1 documentation, should able use newer url attribute follows:

repositories {     mavenlocal()     mavencentral()      maven { url 'http://cloudant.github.io/cloudant-sync-eap/repository/' }     maven { url 'https://github.com/snowch/sync-android-p2p/raw/master/repository/' } } 

as this gradle discussion mentions, should use 1 url per maven block.


Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -