hi guys, I have next problem with kotlin plugin. I...
# intellij-plugins
f
hi guys, I have next problem with kotlin plugin. I have gradle plugin written on kotlin in
buildSrc
. I use kotlin-dsl in this plugin. So in cases when I start some gradle task classes annotated by
@HasImplicitReceiver
(f.e.
Action
) kotlin interpreted like extension (all properties accessed by
this
), but when I trying to build this code from idea it fails with
unresolved reference
and expect
it
before properties/methods:
Copy code
fun Project.registerRepository(url: String) {
    repositories {
        maven {
            setUrl(url) // setUrl: unresolved reference, it.setUrl() works great in idea
        }
    }
}
this code placed in
buildSrc/src/main/kotlin/..
idea also highlights this method with red color and show same error