Summary
In this chapter, we learned how we can work with Groovy and Scala source files in a Gradle project. We applied the Groovy or Scala plugins to our project and saw that Gradle added the tasks to compile the source files, to the project. We learned that we must add a dependency to the correct Groovy or Scala version to the dependency configuration added by the plugin. Both plugins will include the Java plugin as well.
We also learned that the plugins also provide some new properties for source sets so we can, for example, find all Groovy or Scala source files in a source set.
In the next chapter, we take a look at how we can add code quality tools to our Gradle builds.