One opinion. If your primary objective is both Java and kotlin support, it might be better to write the library in Java and add a kotlin library to provide idiomatic access rather than the other way around. I recall a thread somewhere here with a lengthy discussion, and that was the general conclusion. Easier to develop that way. Sorry I don't have a pointer to the thread, though.