Fat jar visibility issue in 1.2.50+


I’ve been trying to build a fat kotlin jar for use by another kotlin project with maven, but every time I’ve tried, the classes/functions in the library have not been visible to the new project. I tried the project here which worked, but even that project has the same issue when I update the kotlin version to 1.2.50 or later. I filed a bug here but was wondering if there was a change in 1.2.50 that I missed that requires some new change to build a fat jar and the mixed-code-hello-world example had just not been updated?


I gave up on fat jars a long time ago and use https://docs.gradle.org/current/userguide/application_plugin.html#sec:the_distribution instead. Of course, that doesn’t help if you actually need a plain jar.