I have an internal library written in Java and some projects who consume this library are written in Kotlin (running in JVM of course), I want to be able to leverage operator overloading in Kotlin over classes in this library from the consuming projects in Kotlin. The solution I found so far is to use extension methods but this is far from ideal since the consuming projects will have to import the extension methods everywhere it wants to use them, I was wondering if there is another solution, maybe auto importing extension methods or somehow declaring the operator overloading methods in Java code in a way that will be detected by the Kotlin compiler
I tried creating extension methods (with various combinations of annotations) but I still had to explicitly import an extension method for every operator I want to use