Could not find method destination() for arguments on Report xml of type org.gradle.api.plugins.quality.internal.findbugs.FindBugsXmlReportImpl

In Gradle 5.x setDestination(Object file) has been removed instead you must use

setDestination(File file)

which takes a File parameter so instead of

destination "$yourpath"

replace it with

destination file("$yourpath")

check gradle doc


Proper example should be

 reports{
    html.enabled true
    html.destination(file("$yourpath"))
 }
 classpath = files()