K/N already uses IR, but there is no solution yet, also IR API is not stable, so for now I believe the only way is publish lib for all platforms, or build it from sources (Gradle composite builds and source dependencies may help but I never tried those features of Gradle with K/N)