You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This stopped working in Gradle 5.6, due to this being added. It assumes that concreteClass is a Kotlin type, and converts it to a KClass, but when the visibility is resolved, it obviously cannot find the Kotlin metadata and throws the above error. It should probably detect if it is indeed a Kotlin type, and otherwise detect via normal Java mechanisms.
Note: it's not quite as simple as simply adding a non-Kotlin plugin, and I'm not exactly sure why. It seems like the accessor class path isn't attempted for generation unless I apply it as a dependency of my Kotlin-DSL-based plugin. Regardless, the following project reliably reproduces the issue.
Expected Behavior
I should be able to use extensions written in languages other than Kotlin.
Current Behavior
The build crashes with this message:
Context
This stopped working in Gradle 5.6, due to this being added. It assumes that
concreteClass
is a Kotlin type, and converts it to aKClass
, but when the visibility is resolved, it obviously cannot find the Kotlin metadata and throws the above error. It should probably detect if it is indeed a Kotlin type, and otherwise detect via normal Java mechanisms.Note: it's not quite as simple as simply adding a non-Kotlin plugin, and I'm not exactly sure why. It seems like the accessor class path isn't attempted for generation unless I apply it as a dependency of my Kotlin-DSL-based plugin. Regardless, the following project reliably reproduces the issue.
Steps to Reproduce
Run the build for this project:
https://github.com/kenzierocks/gradle-kdsl-gen-accessors-non-kotlin-types-issue
Your Environment
Build scan URL: https://scans.gradle.com/s/5cm4zyadrsscs
The text was updated successfully, but these errors were encountered: