This message was deleted.
# community-support
s
This message was deleted.
g
If I recall correctly, Kotlin DSL functions such as
implementation
are available only in
.kts
scripts, not
.kt
files. You could write a precompiled script plugin instead and it should be available there
r
will take a look, thanks
v
Even more than that. These generated accessors are only available in a Kotlin DSL script and only for plugins you applied thorough the
plugins
block in the very same script.
And you cannot achieve what you want with a kts, as then the extension function is scoped to that file. Imagine the contents of the script as the content of a class, that's similar to what actually happens.
Just don't use the accessors in that case, but use the lower level API that is also used by those accessors