Scala Viable Option for Writing Gradle Plugins

For anyone who likes writing Gradle plugins but does not like Groovy, Java, or Kotlin, I recently completed a Gradle plugin in Scala (closed-source for work). I started out just to see if I would run into any problems. I did not, so I kept going. It was a success.

Yes, this should not be a huge surprise since technically it should be fine with any JVM language, but somehow in the back of my mind I thought I would run into a problem, but I did not. Sometimes the syntax was a bit different from what I was used to when writing plugins in Groovy, but it all worked out. Complete with integration tests.

This was our first project dipping our toes in Scala. So, for anyone interested in moving in the direction of Scala, this is a great first project to try. For any existing Scala shops, know that you don’t need to use another language if you use Gradle and need a plugin.