Gradle Groovy Plugin: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 3: Line 3:
=Internal=
=Internal=
* [[Gradle_Plugin_Concepts#Core_Plugins|Gradle Plugins]]
* [[Gradle_Plugin_Concepts#Core_Plugins|Gradle Plugins]]
* [[Gradle_Java_Plugin#Overview|Gradle Java Plugin]]
* [[Groovy#Gradle_Support|Groovy]]
* [[Groovy#Gradle_Support|Groovy]]
=Overview=
=Overview=
The Groovy plugin introduces a new "groovy" [[Gradle_Java_Plugin#Source_Set|source set]], and its corresponding compilation tasks "compileGroovy", "compileTestGroovy", similar to [[Gradle_Java_Plugin#compileJava|compileJava]] and [[Gradle_Java_Plugin#compileTestJava|compileTestJava]]. Similarly to the [[Gradle_Java_Plugin#Overview|Java]] plugin, which inherits from a Java Base plugin, the Groovy plugin inherits from Groovy Base plugin.
The Groovy plugin introduces a new "groovy" [[Gradle_Java_Plugin#Source_Set|source set]], and its corresponding compilation tasks "compileGroovy", "compileTestGroovy", similar to [[Gradle_Java_Plugin#compileJava|compileJava]] and [[Gradle_Java_Plugin#compileTestJava|compileTestJava]]. Similarly to the [[Gradle_Java_Plugin#Overview|Java]] plugin, which inherits from a Java Base plugin, the Groovy plugin inherits from Groovy Base plugin.

Revision as of 07:08, 28 March 2021

External

Internal

Overview

The Groovy plugin introduces a new "groovy" source set, and its corresponding compilation tasks "compileGroovy", "compileTestGroovy", similar to compileJava and compileTestJava. Similarly to the Java plugin, which inherits from a Java Base plugin, the Groovy plugin inherits from Groovy Base plugin.

plugins {
    id 'groovy'
}

repositories {
    mavenCentral()
}

dependencies {
    implementation 'org.codehaus.groovy:groovy-all:3.0.7'
}

TODO

Gradle in Action Section 11.2.2 Building Groovy Projects.