Migrate removed test and JaCoCo output properties
MSALGradle 8.0 removed JacocoPluginExtension.reportsDir, AbstractTestTask.binResultsDir and TestReport.testResultDirs, so setting them fails on Gradle 8.14.4 and 9.8.2. TestReport.destinationDir is deprecated, works on 8.14.4 and fails on 9.8.2. This recipe sets reportsDirectory, binaryResultsDirectory and destinationDirectory instead, wrapping a string in file(..) since they reject one on Gradle 8, and calls testResults.setFrom(..) since testResults as an assignment rejects the list or file testResultDirs accepted. Only writes change, and only on jacoco or a proven Test or TestReport task: reads change type, and destinationDir of Javadoc, reportsDir of checkstyle and others are unrelated. See the Gradle upgrade guide.
org. openrewrite. gradle. migrate. tasks. MigrateTaskOutputPropertiesmod run . --recipe= org. openrewrite. gradle. migrate. tasks. MigrateTaskOutputPropertiesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.