Gradle 1.8 > No such property: allSpecs for class: org.gradle.api.internal.file.copy.DefaultCopySpec_Decorated


(Simon McClenahan) #1

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


(Peter Niederwieser) #2

Turns out ‘allSpecs’ was an internal property that has been removed. I’m not sure how to accomplish this now. If all else fails, you can declare a new ‘war’ task from scratch.