You have to use two "mavenRepo" statements. One statement with two URLs has a
different meaning (see user guide).
As to the mailing list, have you tried to subscribe via
http://xircles.codehaus.org/? It's cumbersome (you need to sign up) but it
should work.

--
Peter Niederwieser
Principal Engineer, Gradleware 
http://gradleware.com
Creator, Spock Framework 
http://spockframework.org
Twitter: @pniederw


ogourment wrote:
> 
> Hi,
> 
> (Note: I wasn't able to subscribe to the mailing list. My email to
> [email protected] never got an answer.. And my attempt at
> posting was answered with a chkuser failure.. No success through Nabble
> either... I am now using Gmane which does not allow HTML and forces lines
> to
> be truncated at 80 characters!!!)
> 
> I'm writing my first build.gradle with maven dependencies from our own
> repository. It's not working. It fails to resolve the artifacts, and I
> suspect
> it's because they are SNAPSHOT versions. The jars have an added timestamp
> in
> their name, and Ivy does not mention attempting to locate jars with
> timestamps
> in their name...
> 
> http://maven.acmeintern.ad/browse/com.acmecorp.sfs/storefrontserver-adamsapi/
> 0.1-SNAPSHOT/storefrontserver-adamsapi-0.1-20110712.124545-5.jar
> 
> Here's my build.gradle:
> 
> apply plugin: 'java'
> 
> repositories {
>     mavenRepo urls: [
>                      
> 'http://maven.acmeintern.ad/repository/acme-releases',
>                      
> 'http://maven.acmeintern.ad/repository/acme-snapshots',
>                     ]
> }
> 
> dependencies {
>     compile group: 'com.adenyo.sfs', name: 'storefrontserver-adamsapi',
>             version: '0.1-SNAPSHOT'
> }
> 
> 
> I found this in the documentation- what does it mean?
> 
> For Ivy related reasons, Maven Snapshot dependencies are only properly
> resolved
> if no additional jar locations are specified. This is unfortunate and we
> hope
> to improve this in a future release.
> 
> Source:
> http://gradle.org/current/docs/javadoc/org/gradle/api/artifacts/dsl/
> RepositoryHandler.html#mavenRepo%28java.util.Map%29
> 
> Thanks,
> 
>     Olivier
> 
> 
> Full output:
> 
> OGMBP2:core ogourment$ gradle test
> :compileJava
> :: problems summary ::
> :::: WARNINGS
>         module not found:
>          com.acmecorp.sfs#storefrontserver-adamsapi;0.1-SNAPSHOT
> 
>     ==== clientModule: tried
> 
>     ==== internal-repository: tried
> 
>     ==== http://maven.acmeintern.ad/repository/acme-releases_poms: tried
> 
>      
> http://maven.acmeintern.ad/repository/acme-releases/com/acmecorp/sfs/
> storefrontserver-adamsapi/0.1-SNAPSHOT/
> storefrontserver-adamsapi-0.1-SNAPSHOT.pom
> 
>       -- artifact
> com.acmecorp.sfs#storefrontserver-adamsapi;0.1-SNAPSHOT!
> storefrontserver-adamsapi.jar:
> 
>      
> http://maven.acmeintern.ad/repository/acme-releases/com/acmecorp/sfs/
> storefrontserver-adamsapi/0.1-SNAPSHOT/
> storefrontserver-adamsapi-0.1-SNAPSHOT.jar
> 
>     ==== http://maven.acmeintern.ad/repository/acme-releases_jars: tried
> 
>       -- artifact
> com.acmecorp.sfs#storefrontserver-adamsapi;0.1-SNAPSHOT!
> storefrontserver-adamsapi.jar:
> 
>      
> http://maven.acmeintern.ad/repository/acme-releases/com/acmecorp/sfs/
> storefrontserver-adamsapi/0.1-SNAPSHOT/
> storefrontserver-adamsapi-0.1-SNAPSHOT.jar
> 
>      
> http://maven.acmeintern.ad/repository/acme-snapshots/com/acmecorp/sfs/
> storefrontserver-adamsapi/0.1-SNAPSHOT/
> storefrontserver-adamsapi-0.1-SNAPSHOT.jar
> 
>         ::::::::::::::::::::::::::::::::::::::::::::::
> 
>         ::          UNRESOLVED DEPENDENCIES         ::
> 
>         ::::::::::::::::::::::::::::::::::::::::::::::
> 
>         :: com.acmecorp.sfs#storefrontserver-adamsapi;0.1-SNAPSHOT: not
> found
> 
>         ::::::::::::::::::::::::::::::::::::::::::::::
> 
> 
> 
> FAILURE: Build failed with an exception.
> 
> * What went wrong:
> Could not resolve all dependencies for configuration ':compile':
>     - unresolved dependency:
> com.acmecorp.sfs#storefrontserver-adamsapi;0.1-SNAPSHOT: not found
> 
> 
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
> 
> BUILD FAILED
> 
> Total time: 10.05 secs
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Unresolved-SNAPSHOT-dependencies-tp4686357p4687126.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to