[GRADLE-1838] Artifacts are missing when meta-data declares multiple artifacts with same name, type and extension but different classifier Created: 16/Oct/11  Updated: 04/Jan/13  Resolved: 06/Nov/11

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.0-milestone-6

Type: Bug
Reporter: Adam Murdoch Assignee: Unassigned
Resolution: Fixed Votes: 0


For example, a project with an additional jar with a classifier:

project A:
task apiJar(type: Jar)

{ classifier = 'api' }


{ runtime apiJar }

// plus default jar as well

project B:

{ compile project(":A") }

In this example, project B will receive only 1 of the jars in its compile classpath.

Comment by Adam Murdoch [ 24/Oct/11 ]

A work around is to use different names, rather than classifiers, to distinguish between the artifacts:

task apiJar(type: Jar)

{ appendix = "api" // or baseName = "$project.name-api" }
Generated at Wed Jun 30 12:05:43 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.