GRADLE-3030 Classifier is missing in generated pom.xml based on project
dependencies.
 - Artifacts are picked up from dependent configuration and written into
   generated pom (with classifier).
 - This fix breaks GRADLE-443 when the dependent project has renamed the
   artifact it publishes.