Switch to Gradle-based build