@Incubating open class GroovyRuntime
Provides information related to the Groovy runtime(s) used in a project. Added by the org.gradle.api.plugins.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.
GroovyRuntime(project: Project) |
open fun inferGroovyClasspath(classpath: MutableIterable<File>): FileCollection
Searches the specified class path for Groovy Jars ( The returned class path may be empty, or may fail to resolve when asked for its contents. |
val GroovyRuntime.ext: ExtraPropertiesExtension
Retrieves the ext extension. |
fun GroovyRuntime.ext(configure: ExtraPropertiesExtension.() -> Unit): Unit
Configures the ext extension. |