I am using Gradle 7.4.2 to build and deploy a Java library on our internal Nexus. It works well, but in addition to the binaries, I would like now to publish the sources and javadoc artifacts, and I am not able to find the right config.
Here's what I have so far :
artifacts {
archives jar
archives sourceJar
}
publishing {
publications {
mavenJar(MavenPublication) {
groupId "my-org.libraries.custom-file-upload"
artifactId archivesBaseName
version version
from components.java
}
}
...
}