Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-3141

ivy file not correctly translated into gradle cache

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1-rc-1
    • 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.

        Attachments

          Activity

            People

            Assignee:
            szczepiq Szczepan Faber
            Reporter:
            szczepiq Szczepan Faber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: