In a project with the java plugin, this works to create a dummy task for consistency with the other projects in a multi-project build:
task pack(dependsOn: jar) << {
println "dummy task"
}
But if I name the task ‘package’:
task pack(dependsOn: jar) << {
println "dummy task"
}
I get: expecting EOF, found ‘package’ @ line 7, column 6.
task package << {