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.

getDefaultTargetJdk

Deprecated

The targetJdk property has no effect for PMD 5.0 and later. Scheduled to be removed in Gradle 10.

Returns the default TargetJdk for the given Java source compatibility version.

Since

1.5