Hi Markus, Thanks for the pointer. I tried setting the snapshot timeout on the repository. No luck. Still fails to download the SNAPSHOT version properly when there is more than one SNAPSHOT in the repository.
Cheers, Eric On Fri, May 13, 2011 at 1:38 AM, Markus Schlichting < [email protected]> wrote: > Hi Eric, > my problem looked similar ... > So, 2 things that might be worth to try: > > Setting the timeout to 0 > > repositories { > mavenRepo (urls: nexusURL).setSnapshotTimeout(0) > } > > or, I think to achieve the same behaviour for single dependencies: > > compile ("com.canoo.application:ULCApplication:0.2-SNAPSHOT"){changing > = true} > > I'm still trying to gather more information about this and understand whats > happening where .... > > HTH > Markus > > > Am 12.05.2011 18:55, schrieb Eric Berry: > > Anyone have any ideas? I'm still having this issue. What's more is if I > follow a normal release cycle: 11.1-SNAPSHOT, 11.1, 11.2-SNAPSHOT. This > still doesn't work. It seems only to have to do with SNAPSHOT versions > though. Putting 11.2 in there and having dependencies on 11.1, and 11.2 in 2 > different projects works fine. > > For now I'm having to delete previous SNAPSHOTs from artifactory but this > is very tedious and could easily become a full-time job. > > Is there any way to run Gradle through a debugger? Perhaps I can run the > tasks from within an IDE and see if I can't figure out what's going on. > Again, artifactory's logs don't show anything. They only show that the files > were uploaded and indexed properly. > > Any help on this would be greatly appreciated. > > On Mon, May 9, 2011 at 12:38 PM, Eric Berry <[email protected]> wrote: > >> Hi Peter, >> Yes that was a typo, sorry. :) >> >> The artifactory logs don't say anything. I see the artifacts being >> uploaded and indexed properly (through the logs, and the interface). >> >> I've created a test project in github: >> https://github.com/townsfolk/artifactory_test >> >> If you have artifactory running anywhere, this should produce the errors. >> >> Here are the steps I've used to recreate the issue consistently. >> >> In the "library" project run 'gradle uploadArchives'. >> In the "app" project run 'gradle build'. >> This should build perfectly. >> >> Then change the version of "library" to '11.2-SNAPSHOT', and run 'gradle >> clean uploadArchives'. >> In "app", change the "libary" dependency accordingly, and run 'gradle >> clean build' >> Now it fails during the "test" task with: >> [quote] >> :::::::::::::::::::::::::::::::::::::::::::::: >> >> :: UNRESOLVED DEPENDENCIES :: >> >> :::::::::::::::::::::::::::::::::::::::::::::: >> >> :: com.example#the-library;11.2-SNAPSHOT: not found >> >> :::::::::::::::::::::::::::::::::::::::::::::: >> >> >> >> FAILURE: Build failed with an exception. >> >> * What went wrong: >> Could not resolve all dependencies for configuration ':testRuntime': >> - unresolved dependency: com.example#the-library;11.2-SNAPSHOT: not >> found >> [/quote] >> >> If you delete 11.1-SNAPSHOT from artifactory and run 'gradle clean build' >> from the "app" project again, it works. >> >> However, and this is very weird to me, If I go back to "library" and >> change the version to 11.1-SNAPSHOT, and then do another 'uploadArchives' - >> the "app" project continues to build successfully. >> >> It doesn't make any sense to me, and there is nothing in the artifactory >> logs. >> >> >> On Sun, May 8, 2011 at 4:16 PM, Peter Niederwieser <[email protected]>wrote: >> >>> I've never heard of this problem before. It might help to have a look at >>> Artifactory's logs. By the way, you first say "my.host.com" and later >>> "svn.host.com". Is this a typo? >>> >>> -- > Learn from the past. Live in the present. Plan for the future. > Blog: http://eric-berry.blogspot.com > jEdit <http://www.jedit.org> - Programmer's Text Editor > Bazaar <http://bazaar.canonical.com> - Version Control for Humans > > > > -- > [image: Canoo Engineering AG - your provider for business web solutions] > <http://www.canoo.com/> > Markus Schlichting > > Canoo Engineering AG > Kirschgartenstrasse 5 > CH-4051 Basel > Tel: +41 61 228 94 44 > Fax: +41 61 228 94 49 > [email protected] > http://www.canoo.com > -- Learn from the past. Live in the present. Plan for the future. Blog: http://eric-berry.blogspot.com jEdit <http://www.jedit.org> - Programmer's Text Editor Bazaar <http://bazaar.canonical.com> - Version Control for Humans
<<canoo_signature.png>>
