api / org.gradle.api.tasks / ScalaRuntime / findScalaJar

findScalaJar

open fun findScalaJar(classpath: MutableIterable<File>, appendix: String): File

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.

Parameters

classpath - the class path to search

appendix - the appendix to search for

Return
a Scala Jar file with the specified appendix