This message was deleted.
# configuration-cache
s
This message was deleted.
t
Not a direct answer but there's no
setFileMode
on the
FileCopyDetails
that
eachFile
works on. There's a
setFileMode
on the
CopySpec
(the one you call
eachFile
on), or
setMode
on
FileCopyDetails
.
👀 1
v
More interesting is, that the error says you call
setFileMode
without arguments on
project
. Are you sure you don't have another call somewhere?
j
Sure, only there. It is groovy
v
Anyway, I think what you want is
Copy code
eachFile {
    permissions {
        unix("rwxrwxr-x")
        // or
        unix(0775)
    }
}
but that is from the top of my head, no IDE available right now
👀 1
At least with Gradle 8.3
j
As a workaround I have created a properly task class injecting file system operation and the error is not happening, but I think your permission DSL was updated recently to improve support for Kotlin as 0775 can’t be written in Kotlin
v
Before something like
Copy code
eachFile {
    mode = 0775
}