Lars Ködderitzsch
07/01/2022, 5:32 AMartifactId of the publication for the java artifact.
This all works pretty well - except for the case where a project of this kind is being used in a multiproject build using a project reference.
While Gradles dependency resolution can still work out the correct dependency via the artifact capabilities, publishing the dependent project fails with the infamous:
Publishing is not able to resolve a dependency on a project with multiple publications that have different coordinates.
project A:
-> produces group:a (zip)
-> produces group:a-java (jar)
project B
-> declares dependency implementation(project(":a"))
Is there a workaround to coerce publishing of B to choose the correct coordinates (group:a-java)?