Make query methods for deprecation state of core configurations public This is to allow plugin authors to make use of this information.
The methods to actually deprecate configurations stay internal, as they are bound to the deprecation mechanism of Gradle core. And thus they may only be used for configurations of Gradle's core plugins.
Fix Kotlin DSL accessor for `android.kotlinOptions` And introduce a stricter accessor type precedence order.
The accessor type is the first public Kotlin type found in the given extension type hierarchy considering all the types in the following order: * the extension type itsef * its superclasses excluding `java.lang.Object` * all supported interfaces ordered by: - subtyping first: subtypes before supertypes - where it's found in the class hierarchy: subclass interfaces before superclass interfaces