Project build ported to Gradle