I'm facing an issue that drives me crazy. I'm tryi...
# dokka
t
I'm facing an issue that drives me crazy. I'm trying to create a reusable version of maven publish instructions for my library. I try to put some code in buildSrc and everything seems to work fine except for the dokka plugin
DokkaTask
cannot be resolved even though I've added the dokka plugin in plugins{} block in build.gradle.kts Any idea why is this happening and how I can fix this?
m
That's funny, I was trying to do exactly the same thing today and had exactly the same issue :D
👍 1
Turned out I needed to add dokka dependency (I added it both to classpath and to dependencies of the gradle module)
Somehow it's not required to add it to deps when you just use it in build.gradle.kts but is required when you're using it as compiler plugin or sth similar
t
@Michal Klimczak Seems that you are absolutely right. I included the same dokka plugin definition both in classpath and in depedencies (using implementation(“”)) and now it seems to resolve itself. Quite strange really but thanks for the hint :)
👍 1
m
I also started having this thing, but it builds just fine, only IDE compains
t
Same here as well. I simply ignore it :D