André Martins
12/12/2022, 10:56 AMcompiled code  on the method implementations, any ideias?Ties
12/12/2022, 10:59 AMmvn source:jar
) ?André Martins
12/12/2022, 11:03 AMtask sourcesJar(type: Jar) {
    from sourceSets.main.allJava
    classifier 'sources'
}Ties
12/12/2022, 11:06 AMidea {
    module {
            //if you love browsing Javadoc
            downloadJavadoc = true
            //if you love reading sources :)
            downloadSources = true
    }
}
(getting this from stack overflow https://stackoverflow.com/questions/37281153/gradle-downloading-source-dependencies, im not that good with gradle yet :P)Riccardo Lippolis
12/12/2022, 11:15 AMfrom sourceSets.main.allJava it includes Java sources (which aren't there) and ignores Kotlin sources. I use the following to publish a sources jar:
java {
    withSourcesJar()
}
that way, there's no need to register a separate task (it will be done automatically by including the above), and it includes all sourcesAndré Martins
12/12/2022, 11:17 AMViktor Sirotin
12/12/2022, 2:16 PM