Use ObjectFactory rather than Usages to create Usage on Gradle 4.0
Usages has been removed in Gradle 4.0 and replaced with the use of a new ObjectFactory API that can be used to create a Usage. This commit uses reflection to access the ObjectFactory from the Project and use it to create a Usage when an attempt to use Usages fails. Closes gh-9364
Showing
Please register or sign in to comment