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

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -