Remove the deprecated PMD targetJdk property
Apache 2.0Gradle 9.6 deprecates Pmd.getTargetJdk(), PmdExtension.getTargetJdk(), their setters, and the TargetJdk enum, with no replacement: PMD selects a parser based on the source set's Java version instead. This recipe removes targetJdk configuration from pmd { } extension blocks and from Pmd task configuration, and drops a configuration block that is left empty as a result.
org. openrewrite. gradle. gradle9. RemovePmdTargetJdkmod run . --recipe= org. openrewrite. gradle. gradle9. RemovePmdTargetJdkInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.