I need to copy a generated EAR to Wildfly’s deployment directory, but I can’t get the Copy task to work.
According to the gradle docs here and here, all I need to do is (for example): ‘’’ task copyTask(type: Copy) {
from ‘src/main/webapp’
into ‘build/explodedWar’ } ‘’’
However executing ‘gradle copyTask’ with Gradle v2.1, I get this error:
Cannot create task of type ‘Copy’ as it does not implement the Task interface.
Please advise.