For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

setTargetJdk

open fun setTargetJdk(value: Any)(source)

Deprecated

This property has no effect for PMD 5.0 and later, which infer the language version from the rule sets. Scheduled to be removed in Gradle 10.

Sets the target jdk used with pmd.

Since

1.5

Parameters

value

The value for the target jdk as defined by toVersion