Chapter 8. Mixed Languages
We have seen how to use Gradle for projects with Java code. Gradle has support for other languages as well. In the last couple of years, other languages for Java Virtual Machine have emerged. In this chapter, we will take a look at Gradle's support for the Groovy and Scala languages. Both languages are supported by Java Virtual Machine.
We will see how we can apply the correct plugin and configuration to our Gradle build files to work with the different languages.
Gradle also supports C++. The C++ plugin adds support to compile source files. Javascript and Closure plugins are available as third-party plugins, which add support for those languages. We will not cover this support in this book. We will focus on the JVM languages—Groovy and Scala.