|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gradle.api.tasks.GroovyRuntime
@Incubating public class GroovyRuntime
Provides information related to the Groovy runtime(s) used in a project. Added by the GroovyBasePlugin as a project extension named groovyRuntime.
Example usage:
apply plugin: "groovy" repositories { mavenCentral() } dependencies { compile "org.codehaus.groovy:groovy-all:2.1.2" } def groovyClasspath = groovyRuntime.inferGroovyClasspath(configurations.compile) // The returned class path can be used to configure the 'groovyClasspath' property of tasks // such as 'GroovyCompile' or 'Groovydoc', or to execute these and other Groovy tools directly.
Constructor Summary | |
GroovyRuntime(Project project)
|
Method Summary | |
---|---|
FileCollection
|
inferGroovyClasspath(Iterable classpath)
Searches the specified class path for Groovy Jars (groovy(-indy), groovy-all(-indy)) and returns a corresponding class path for executing Groovy tools such as the Groovy compiler and Groovydoc tool. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public GroovyRuntime(Project project)
Method Detail |
---|
public FileCollection inferGroovyClasspath(Iterable classpath)
The returned class path may be empty, or may fail to resolve when asked for its contents.
classpath
- a class path containing Groovy Jars
Gradle API 1.12