Hello, I would like to use the compiler in a gradle plugin, to process individual Kotlin files and extract the comments. I have been using Dokka Analysis for that in Kotlin 1.8, but it has been removed with no replacement provide, so I thought this may be the way to go. I guess I should add the kotlin-compiler-embeddable to my dependencies but I am not sure how to invoke it to parse a single file. Could you give me any pointers?
Thank you! I have written compiler plugins before, but I was looking for a way to avoid it, as it would be part of a process that process different elements (including Kotlin files) to produce some comprehensive documentation, and I did not want to tie that to the compilation process of the Kotlin code. I was hoping to have something separate, that does the bare minimum parsing necessary for comments extraction