You might be hitting http://jira.codehaus.org/browse/GRADLE-413. If your classpath looks ok, then try rebuilding the cached build script.

Russel Winder wrote:
Using Gradle Trunk trying to use the Gradle Cobertura Plugin.

I load all the extra jars needed using settings,gradle.  That seems to
work.  However in the build,gradle file I have:

        useCobertura =  System.properties.useCobertura == 'true' ? true : false
. . . if ( useCobertura ) {
                usePlugin ( org.gradle.api.plugins.cobertura.CoberturaPlugin )
                //usePlugin ( 'cobertura' )
        }

and I am getting the error
        Build file 
'/home/users/russel/Repositories/Bazaar/Masters/ADS/build.gradle' line: 51
A problem occurred evaluating root project 'ADS'.
        Cause: Could not find property 'org' on root project 'ADS'.

where the usePlugin statement is line 51.  Looking at the debug log:

10:28:36.267 [main] DEBUG o.g.initialization.DefaultSettings - Adding to 
classpath: 
[/home/users/russel/lib/Java/gradleCoberturaPlugin/lib/cobertura-1.9.1.jar, 
/home/users/russel/lib/Java/gradleCoberturaPlugin/jar/gradle-cobertura-plugin-0.2-SNAPSHOT.jar,
 /usr/lib/jvm/java-6-sun-1.6.0.10/lib/tools.jar, 
/home/users/russel/.gradle/cache/oro/oro/jars/oro-2.0.8.jar]
10:28:36.267 [main] DEBUG org.gradle.util.ClasspathUtil - Adding to classpath: 
/home/users/russel/lib/Java/gradleCoberturaPlugin/lib/cobertura-1.9.1.jar
10:28:36.268 [main] DEBUG org.gradle.util.ClasspathUtil - Adding to classpath: 
/home/users/russel/lib/Java/gradleCoberturaPlugin/jar/gradle-cobertura-plugin-0.2-SNAPSHOT.jar
10:28:36.268 [main] DEBUG org.gradle.util.ClasspathUtil - Adding to classpath: 
/usr/lib/jvm/java-6-sun-1.6.0.10/lib/tools.jar
10:28:36.268 [main] DEBUG org.gradle.util.ClasspathUtil - Adding to classpath: 
/home/users/russel/.gradle/cache/oro/oro/jars/oro-2.0.8.jar

So the jar appears to be in the classpath and the class appears to be in
the jar and yet search is not finding it.

Anyone any ideas on how I might be able to get this sorted?

Thanks.


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

   http://xircles.codehaus.org/manage_email


Reply via email to