How do I get the Kotlin sources in a gradle depend...
# intellij
d
How do I get the Kotlin sources in a gradle dependency in Intellij Ultimate? I have sources for everything except a certain one...
w
Perhaps that dependency doesn’t publish sources?
d
Yup there are sources files there...
Copy code
micronaut-test-kotest-2.3.2-sources.jar           2021-01-11 14:34      1107      
micronaut-test-kotest-2.3.2-sources.jar.asc       2021-01-11 14:34       821      
micronaut-test-kotest-2.3.2-sources.jar.asc.m...  2021-01-11 14:34        32      
micronaut-test-kotest-2.3.2-sources.jar.asc.s...  2021-01-11 14:34        40      
micronaut-test-kotest-2.3.2-sources.jar.md5       2021-01-11 14:34        32      
micronaut-test-kotest-2.3.2-sources.jar.sha1      2021-01-11 14:34        40
w
seems like the sources jar is empty has no files?
d
Oh... really funny why they would do such a thing, but thanks! That's probably the issue then.
w
Maybe they just misconfigured the build 🙂 But if it’s on purpose then I’d be very interesting in why 😛
https://github.com/micronaut-projects/micronaut-build/blob/master/src/main/groovy/io/micronaut/build/MicronautPublishingPlugin.groovy#L83-L87 Seems like the publishing plugin doesn’t mention kotlin, perhaps some special configuration is needed to include
*.kt
files in the sources jar