|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.plugins.scala.ScalaBasePlugin
class ScalaBasePlugin
Property Summary | |
---|---|
static String |
SCALA_TOOLS_CONFIGURATION_NAME
|
static String |
ZINC_CONFIGURATION_NAME
|
Constructor Summary | |
ScalaBasePlugin(FileResolver fileResolver)
|
Method Summary | |
---|---|
void
|
apply(Project project)
|
File
|
findScalaJar(Iterable classpath, String module)
Searches the specified class path for a Scala Jar file matching the specified module (compiler, library, jdbc, etc.). |
String
|
getScalaVersion(File scalaJar)
Determines the version of a Scala Jar file (scala-compiler, scala-library, scala-jdbc, etc.). |
FileCollection
|
inferScalaCompilerClasspath(Iterable classpath)
Infers a Scala compiler class path (containing a 'scala-compiler' Jar and its dependencies) based on the 'scala-library' Jar found on the specified class path. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Property Detail |
---|
static final String SCALA_TOOLS_CONFIGURATION_NAME
static final String ZINC_CONFIGURATION_NAME
Constructor Detail |
---|
@Inject ScalaBasePlugin(FileResolver fileResolver)
Method Detail |
---|
void apply(Project project)
@Nullable @Incubating File findScalaJar(Iterable classpath, String module)
classpath
- the class path to searchmodule
- the module to search for
@Nullable @Incubating String getScalaVersion(File scalaJar)
Implementation note: The version is determined by parsing the file name, which is expected to match the pattern 'scala-[component]-[version].jar'.
scalaJar
- a Scala Jar file
@Incubating FileCollection inferScalaCompilerClasspath(Iterable classpath)
Falls back to returning the 'scalaTools' configuration if one of the following holds:
classpath
- a class path (supposedly) containing a 'scala-library' Jar
Gradle API 1.5-rc-2