Jeppe,

I see you are having basically the same problem I am.  I should have
just replied to your email in the first place saying "me too" :-)

On Tue, 2009-03-24 at 14:56 +0100, Jeppe Nejsum Madsen wrote:
> Hi
> 
> I'm trying to replace our aging Ant build system with Gradle. I know one of
> Gradle's key features is automatic dependency management, but to ease the
> transition, I'm was thinking (unwisely?) to start out by reusing our
> existing directory structure if jar files. This works fine for jars with
> version info in the filenames, but I can't seem to make it work for jars
> without version info. I'm using gradle 0.5.2 btw.
> 
> This is my setup
> 
> common/
>   src/
>   test/
>   build.gradle
> 
> ServerLibraries
>   lib/
> 
> And here's my build.gradle:
> 
> version = 1
> usePlugin('java')
> sourceCompatibility = 1.5
> targetCompatibility = 1.5
> srcRootName = '.'
> srcDirNames = ['src']
> testSrcDirNames = ['test']
> 
> dependencies {
>     addFlatDirResolver('serverlib').addArtifactPattern(new
> File('../ServerLibraries/lib/').absolutePath+'/[artifact](-[revision]).[ext]
> ')
>     compile (':commons-httpclient:3.1',':log4j:1.2.15',
> ':dom4j:1.6.1',':jamon:2.7')
>     compile ':jets3t:0.6.0'
>     compile ':spring:'
> }
> 
> No matter what I do, the build always fails with the last dependency:
> Build file 'D:\workspaces\trunk\common\build.gradle' line: 13
> 
> A problem occurred evaluating project :.
> Cause: The dependency notation: :spring: is invalid!
> 
> Being new to Gradle & Ivy I would appreciate some hints :-)
>  
> /Jeppe
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
-- 
Russel.
============================================================
Dr Russel Winder                 Partner

Concertant LLP          t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,     f: +44 8700 516 084    voip:  
sip:[email protected]
London SW11 1EN, UK.    m: +44 7770 465 077    xmpp: [email protected]

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to