Cannot resolve resource filtering of MatchingCopyAction when I reload Gradle projects
已回答
When I click "Reload All Gradle Projects" button, I see the following warning on Build window.
Cannot resolve resource filtering of MatchingCopyAction. IDEA may fail to build project. Consider using delegated build (enabled by default).
I found that temporarily removing the following configuration from my build.gradle fix the issue.
processResources {
filesMatching(['**/*.yml']) {
expand([version: version])
}
}
请先登录再写评论。
This warning should not infeunce the build if you are using the Gradle for building and running (the default option) in Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Gradle | Build and run using.
The warning informs that this action is not supported by the IntelliJ IDEA builder (when IntelliJ IDEA is used for Build and run actions) - i.e. the resource filtering may be incorrect when building by IntelliJ IDEA.
A related YouTrack issue:
IDEA-296490 Unsupported action found: org.gradle.api.internal.file.copy.MatchingCopyAction
I've found nothing but posts about this issue and that it shouldn't influence the build. But it does.
My project doesn't output anything with this, and when commenting out the
processResources
block it does, but then the output doesn't work how it shouldNicolas Ucieda Thank you reporting this!
Since it's a known issue, that has already been filed on YouTrack, it would be best to upvote and comment on the YouTrack Issue and, if possible, share a reproducer Project, you've mentioned.