Switch to Gradle structure.