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.

findScalaJar

@Nullable
open fun findScalaJar(classpath: Iterable<File>, appendix: String): @Nullable File(source)

Searches the specified class path for a Scala Jar file (scala-compiler, scala-library, scala-jdbc, etc.) with the specified appendix (compiler, library, jdbc, etc.). If no such file is found, null is returned.

Return

a Scala Jar file with the specified appendix

Since

1.6

Parameters

classpath

the class path to search

appendix

the appendix to search for