is there a good set of documentation for packaging...
# gradle
x
is there a good set of documentation for packaging source jars such that intellij idea is able to detect the kotlin sources correctly? for some reason how I’m doing it, intellij doesn’t want to find the source jar. https://bitbucket.org/xenoterracide/gradle-mirror/src/master/src/main/java/com/xenoterracide/gradle/mirror/MavenPublishingPlugin.java
c
If you just follow gradle guide it should work. If it doesn't, please post your config. Here's the guide: https://docs.gradle.org/current/userguide/publishing_maven.html
x
@Czar linked my config
it pushes the artifact, but no idea why intellij isn’t loving it
c
Does jar archive actually contain all the necessary sources? And what does IJ say when you try to attach/download them? Do JavaDocs work with this config?
I suspect, you're missing Kotlin sources, because they are not in the
project.sourceSets
, but instead in
kotlin.sourceSets
. I don't have ability to test this and don't remember for sure though. Maybe I'm wrong and
project.sourceSets
does include
kotlin.sourcSets
. Should be easy enough for you to check, otherwise unfortunately I have no further input at the moment 😐