Package org.gradle.api.tasks
Klasse GroovyRuntime
java.lang.Object
org.gradle.api.tasks.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:
plugins {
id 'groovy'
}
repositories {
mavenCentral()
}
dependencies {
implementation "org.codehaus.groovy:groovy-all:2.1.2"
}
def groovyClasspath = groovyRuntime.inferGroovyClasspath(configurations.compileClasspath)
// 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.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunginferGroovyClasspath(Iterable<File> 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.
-
Konstruktordetails
-
GroovyRuntime
-
-
Methodendetails
-
inferGroovyClasspath
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. The tool versions will match those of the Groovy Jars found. If no Groovy Jars are found on the specified class path, a class path with the contents of thegroovyconfiguration will be returned.The returned class path may be empty, or may fail to resolve when asked for its contents.
- Parameter:
classpath- a class path containing Groovy Jars- Gibt zurück:
- a corresponding class path for executing Groovy tools such as the Groovy compiler and Groovydoc tool
-