Deprecated in gradle 6.0

I’m trying to include java code coverage to by build script but I’m facing following error

$ gradle jacocoTestReport> Task :jacocoTestReportDeprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.Use '--warning-mode all' to show the individual deprecation warnings.See
``` then i tried using '--warning-mode all'

gradle jacocoTestReport --warning-mode=all> Configure project :The JacocoReportBase.setClassDirectories(FileCollection) method has been deprecated. This is scheduled to be removed in Gradle 6.0. Use getClassDirectories().from(...) at build_cyv4aqw024szpuohg9tt2g7bq_run_closure10$_closure15.doCall(/builds/OCGBU_OCSS/ossbrkr/cloud-broker/build.gradle:127) (Run with --stacktrace to get the full stack trace of this deprecation warning.)

Hi @sainath199,

Long story short, you will not be able to set classDirectories directly in gradle 6. Just change your code from:
classDirectories =

classDirectories.from =

And you should be just fine :wink: