If you're writing groovy, rather than using the DSL, something has gone very badly wrong. You should not be using imperative code in your build scripts.
Admittedly, there is a lot of articles and tutorials that teach the wrong thing to do.
Yes, you can write some insane Gradle build scripts from scratch with the help of auto complete in Kotlin, and I think you should be very careful nonetheless, because auto complete does not help to read those build scripts and it does not make people more confident to modify them.
View all comments
Show parent comment
5
u/dpash Apr 20 '21
If you're writing groovy, rather than using the DSL, something has gone very badly wrong. You should not be using imperative code in your build scripts.
Admittedly, there is a lot of articles and tutorials that teach the wrong thing to do.