Not finding Kotlin sources from Maven sources jar - no .kt but .java works fine!

Answered

Hi all,

We have a mixed Java + Kotlin code base. Our Maven integration builds produce sources jars which contain both the .java and .kt files. But IntelliJ (Ultimate) does not pick up the .kt files. Instead it propose to decompile the .class or select the source location.

Somewhat similar to the apparently abandoned issue https://youtrack.jetbrains.com/issue/KT-25503 

Or is there a solution for this?

Regards,

Johan

0
1 comment

Hello, Johan!

Thank you for reporting this!

I'm currently attempting to reproduce this behavior, but so far was unable to.

Would you be able to share the Artifact in question or, possibly, know any publicly available Artifacts of similar structure (that use both Java and Kotlin and have a Sources JAR) that exhibit this behavior? 

0

Please sign in to leave a comment.