[GRADLE-3141] ivy file not correctly translated into gradle cache Created: 30/Jul/14  Updated: 28/Aug/14  Resolved: 05/Aug/14

Status: Resolved
Project: Gradle
Affects Version/s: 2.0
Fix Version/s: 2.1-rc-1

Type: Bug
Reporter: Szczepan Faber Assignee: Szczepan Faber
Resolution: Fixed Votes: 0

Known Issue Of:
2.0

 Description   

Given the dependency is published with ivy like:

<publications>
    <artifact name="kafka_2.10" type="jar" ext="jar" conf="archives"/>
    <artifact name="kafka_2.10" type="jar" ext="jar" conf="runtime"/>
</publications>

Gradle internally in the cache creates ivy file like:

<publications>
    <artifact name="kafka_2.10" type="jar" ext="jar" conf="archives"/>
</publications>

Symptoms:

1. Runtime errors, compilation errors: the artifact file is missing from the configuration.files (the dependency is correctly resolved).
2. The artifact file is present in configuration.files only when --refresh-dependencies flag is used.

With Gradle 1.12, gradle translates ivy file into:

<publications>
    <artifact name="kafka_2.10" type="jar" ext="jar" conf="archives,runtime"/>
</publications>

This error hard to figure out by the end users because missing artifact manifests in runtime or at best compilation errors and dependency reports show that the dependency is correctly resolved.


Generated at Wed Jun 30 12:41:04 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.