Build system reimplemented in Gradle