Refactored project to Gradle, downgraded Groovy version to match PDI