Issue with detekt plugin after upgrading to gradle 8.5 from 6.2
I have a task copyDetektService which copies a jar file (with custom Detekt rules) into a directory, and another task replaceDetektYaml which unzips the jar and copies the file detekt.yml from it to the directory /config/detekt/. The task detekt depends on the replaceDetektYaml task. If I just run ./gradlew replaceDetektYaml, it is successful. However, ./gradlew detekt fails with the error: