The following works fine for me with Gradle 2.10. What version are you using that produces the issue above?
apply plugin: 'groovy'
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.codehaus.groovy', name: 'groovy', version: '2.4.4', classifier: 'grooid'
}
task copyLibs(type: Copy) {
from configurations.compile
into "$buildDir/libs"
}