Rename Groovy sample file with a .gradle extension

This PR fixes the problem in #1365.
One of the samples for Groovy has a `.gradle` extension. Because of this, all `.gradle` files gets recognized as Groovy. I renamed the file from `build.gradle` to `build.script!`.