Replaced shell scripts with Gradle tasks.