Are typed extensions or named objects working in t...
# gradle
d
Are typed extensions or named objects working in the lastet kotlin-dsl ? No matter what I do (so far) Im getting the Accessors0.kt file generating accessors for extension objects written in Kotlin with "Any" type Like this: /** * Retrieves the [report][nexstra.client.workflow.RunReportSteps.Parameters] extension. * *
report
is not accessible in a type safe way because: * -
nexstra.client.workflow.RunReportSteps.Parameters
is not available */ val org.gradle.api.Project.`report`: Any get() = (this as org.gradle.api.plugins.ExtensionAware).extensions.getByName("report")
e
Looks like you hit https://github.com/gradle/kotlin-dsl/issues/952 with
RunReportSteps.Parameters
d
Yes looks similar, but in my case the types are not nested, they are 'normal kotlin classes' .. but maybe they appear nested to gradel
e
isn’t
Parameters
nested into
RunReportSteps
?
d
YES ! I was looking at the wrong code, they are nested. When I un-nest , ( and use the right version of gradle) its workign !!!
👍 1