-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't configure kotlinOptions after upgrade to gradle 5.6.3 using kotlin-dsl #11083
Comments
Thanks for the report @b95505017 |
I run into the same issue after updating to 5.6.3 (https://github.com/robinlinden/aTox/tree/gradle-5.6.3):
Just running a |
Thanks @robinlinden, the reproducer helped. With Gradle 5.6.2, With Gradle 5.6.3, that same accessor is typed |
You can work around that by using the API instead of the generated accessor: android {
(this as ExtensionAware).configure<KotlinJvmOptions> {
jvmTarget = "1.8"
}
} or by using the more dynamic Groovy builder: android {
withGroovyBuilder {
"kotlinOptions" {
setProperty("jvmTarget", "1.8")
}
}
} |
@eskatos Will future version change back? |
Fix for 6.0 (#11171) is now on |
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 Fixes #11083
Fix for 5.6 (#11191) is now on |
The text was updated successfully, but these errors were encountered: