Migration to Gradle structure