There is a GitLab Community Edition 15.11.3 server in which the artifacts of our java libs are stored in the package registry (lib-name.jar, lib-name.sources.jar, lib-name.javadoc.jar) There are projects that, through build.gradle, pull our libs from gitlab, everything is ok, everything works:
plugins {
id 'java'
id 'idea'
}
repositories {
maven {
url "https://gitlab.server.com/api/v4/groups/maven/-/packages/maven"
name "GitLab"
credentials(HttpHeaderCredentials) {
name = gradle.vcsAuthHeader
value = gradle.vcsAccessToken
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
dependencies {
implementation 'com.google.guava:guava:31.1-jre'
implementation 'org.company.tool:lib-name:0.0.1'
}
But lib-name.sources.jar and lib-name.javadoc.jar are not pulled up, but only lib-name.jar, while sources and javadoc are easily pulled up from any other sources. Sources are pulled from the github, ours, if we put them in the nexus, any other libs from the maven repositories.
For example, when working with the guava library, I see both sources and javadocs in the gradle cache and, accordingly, intellij IDEA automatically pulls all this up for them, but not for our libs.
Tried different versions of Gradle, from old to latest, doesn't help.
What could be the problem?
Updates:
Will add sources jar to my application's classpath. It's not what I would like:
implementation 'org.company.tool:lib-name:0.0.1:sources'
Does not help:
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}