Replaced private API with a public API for new gradle plugin 0.10.0