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.

inferScalaClasspath

Searches the specified class path for a 'scala-library' Jar, and returns a class path containing a corresponding (same version) 'scala-compiler' Jar and its dependencies.

The returned class path may be empty, or may fail to resolve when asked for its contents.

Return

a class path containing a corresponding 'scala-compiler' Jar and its dependencies

Since

1.6

Parameters

classpath

a class path containing a 'scala-library' Jar