I am trying to rename a jar by prefixing it with “xxxx-”. The following code worked up to Gradle 1.7 but is broken in 1.8.
war {
// NOTE Saxon needs to be renamed to be after Xalan in classpath
// because classloader loads jars in alphabetical order in this case defaulting
// to Saxon before Xalan which may conflict with WSS4j/xmlsec
from webSrcDir
war.rootSpec.allSpecs*.rename('(^Saxon-HE.*\.jar)', 'xxxx-$1')
Error message is: > No such property: allSpecs for class: org.gradle.api.internal.file.copy.DefaultCopySpec_Decorated </code