Move Groovy classes from build.gradle to buildSrc