https://kotlinlang.org logo
d

dave08

02/16/2021, 2:38 PM
How do I get the Kotlin sources in a gradle dependency in Intellij Ultimate? I have sources for everything except a certain one...
w

wasyl

02/16/2021, 2:41 PM
Perhaps that dependency doesn’t publish sources?
d

dave08

02/16/2021, 2:43 PM
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

wasyl

02/16/2021, 2:54 PM
seems like the sources jar is empty has no files?
d

dave08

02/16/2021, 2:55 PM
Oh... really funny why they would do such a thing, but thanks! That's probably the issue then.
w

wasyl

02/16/2021, 3:00 PM
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
3 Views