We finally migrated all our Groovy build scripts to Kotlin DSL and life is good… for now.
I was wondering, how do we now stop new Groovy build scripts appearing in the project so that I don’t have to keep migrating any new ones which appear?
I know there’s one approach where I just search the entire project for *.gradle
files and fail the build if any exist, but the project contains a lot of files, so it will be slow.
Is there some way from within the build to determine whether any of the loaded build scripts are Groovy ones?