[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 |
Description |
For example, a project with an additional jar with a classifier: project A: artifacts { runtime apiJar }// plus default jar as well project B: In this example, project B will receive only 1 of the jars in its compile classpath. |
Comments |
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" } |