I use multiple repositories all the time, but I repeat the mavenRepo
instaed of using a list. Not sure if that matters or not. I also put
mavenCentral last as it trys in order and usually you want things in
the other more specific repos first. Also, usually when a dep can't be
found, gradle complains with a "unresolved dependency: abc#def;0.9:
not found" at that point instead of getting a classNotFound later, so
I suspect your problem is not actually a missed download.
repositories {
mavenCentral()
mavenRepo urls:
'https://maven.atlassian.com/content/repositories/atlassian-public'
mavenRepo urls: 'http://download.java.net/maven/2'
}
Philip
On Mon, May 2, 2011 at 12:38 PM, M A <[email protected]> wrote:
> Hi all,
>
> As far as I know, it's not possible for me to use multiple maven
> repositories from Gradle - where each repository is a source for both
> pom and jar files. I've tried this:
>
> repositories {
> mavenCentral()
> mavenRepo urls:
> ['https://maven.atlassian.com/content/repositories/atlassian-public',
> 'http://download.java.net/maven/2']
> }
>
> When I execute a gradle run I find that I'm missing runtime dependencies:
>
> ...
> :run
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com/sun/jersey/core/util/FeaturesAndProperties
> ...
>
> If I were the only consumer of this project, then I could use
> Artifactory to solve this. However I want anyone to be able to build
> the project.
>
> Any suggestions?
>
> Cheers,
> Merlyn
>
> PS The project is here:
> https://github.com/curious-attempt-bunny/rabu-jira-integration
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email