I published my jar to artifactory (jar and the corresponding source) with a custom classifier as bellow:
artifacts {
archives(file('jarPath')) {
classifier = 'EntityJar'
name = archivesBaseName
}
archives(file('srcJarPath')) {
classifier = 'EntityJarSrc'
name = archivesBaseName
}
}
When I’m trying to resolve my dependencies from artifactory, I’m getting a problem to automatically attach the source to the jar, since Buildship by default tries to attach sources to all dependencies with standard format : jarName-source to the jar jarNme witch is not my case.
Could anyone help me to automatically attach custom name source to each jar?