I’ve been developing Grails apps in Spring Tool Suite. STS will compile your Groovy code as you save it just as Eclipse does for Java code. This is great during coding, but can cause issues when it’s time to check in. If you deleted a class and then run test-app, that class may not be cleared from your target/classes and tests may pass that shouldn’t. Before checking in, I now need to run clean, then refresh-dependencies, then test-app. To save some time, I created the following script that will do it all at once. Now I can just run clean-test-app.