It looks like an issue from tasks.gradle and the path separators:
projects\cas-overlay-template\build/cas-resources
which causes string mismatch with
def toResourceFile = resourceFile.replace(fromFile, resourcesDir)
I added/modified to the task.gradle file getResource function:
def resourcesDir = "${projectDir}/src/main/resources"
def fileName = results[0].name
def toResourceFile = "${resourcesDir}/${fileName}"
Now it executes and places resource in project/src/main/resource
Not sure if this is the correct solution or not. I also expected if I overlaid static/image/cas-logo that it would place in the appropriate src/resources folder but that is not the case
-psv