AGP 7.1+ does not automatically register the release SoftwareComponent
for maven-publish. Must explicitly opt in via android { publishing {
singleVariant("release") } } so that components.release is available
in afterEvaluate.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
KTS scripts loaded via apply(from) are compiled without AGP on the
classpath, so LibraryExtension and ext are unresolvable. Groovy
applied scripts are evaluated dynamically and don't have this issue.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>