Throw exception if unsupported Gradle version is used