Luk,

When the Cobertura jar cannot be found, the message:

Cause: org.gradle.api.GradleException: Can't find Cobertura library. Ensure it 
is in GRADLE_HOME/lib

Is reported.  I think the last bit is an assumption too far, the
cobertura jar just needs to be in the classpath.

I tried:

        dependencies {
          . . . 
          if ( useCobertura ) {
            addFlatDirResolver ( 'CoberturaPluginLibs' , 
System.properties.'user.home' + '/lib/Java/gradleCoberturaPlugin/lib' )
            testCompile ( 'cobertura:cobertura:1.9.1' )
          }
        }

but this got me nowhere, I still got the message above.  I also tried
replacing testCompile with cbInstrument but that gave a different error
message:

Cause: No signature of method: 
org.gradle.api.internal.artifacts.DefaultDependencyManager.cbInstrument() is 
applicable for argument types: (java.lang.String) values: 
{"cobertura:cobertura:1.9.1"}

-- 
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