Hi All,

I'm having an issue with groovy classes in the build script classpath. 
I have added some *.groovy files to the classpath:

buildscript {
    dependencies {
        classpath files('./groovy')
    }
}

When I run a task for the first time, the groovy classes will be compiled 
correctly into ~/.gradle/caches/0.9.2/scripts/build... 
but an unsupported operation exception is thrown:
UnsupportedOperationException: Build file 'build.gradle' should not contain a 
package statement.
    at 
org.gradle.groovy.scripts.DefaultScriptCompilationHandler.compileScript(DefaultScriptCompilationHandler.java:119)
...

Afterwards the tasks are executed correctly until the buildscript needs to be 
recompiled.
The build.gradle does not contain a package statement, but the groovy classes 
do.

Any pointer how I can avoid this?

Thanks, Christian



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

    http://xircles.codehaus.org/manage_email


Reply via email to