I write kotlin DSL in separate repository. All class in this gradle project is class for my DSL. I want to be sure that all classes will be open. I now about allopen plugin, but it need annotation. I don't want to use an annotation, because I can forget to put it when adding a new class. What's the best way to make all kotlin classes open?
Asked
Active
Viewed 123 times
0
-
You can write your own processor and make all classes open at compile-time. Check [kotlinpoet](https://github.com/square/kotlinpoet) for example. – m0skit0 Feb 19 '23 at 23:06
-
As i understand kotlinpoet create new class/code. Сan it modify existing classes? – Тим Feb 20 '23 at 08:05