Gradle

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
To raise new issues or bugs against Gradle, please use forums.gradle.org.
  • Gradle
  • GRADLE-2247

Gradle cannot resolve dependencies when using ivy repository in layout 'gradle'

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None

Description

I copied the existing .gradle/caches/artifacts-13/ repository into a folder 'offline' and declared an ivy repository

ivy { url "offline" layout "gradle" }

Then i removed the .gradle/caches/artifacts-13 directory, and expected gradle to resolve all dependencies via the offline folder. It does not work because the 'gradle' layout is not the latest 'wharf' layout. Using log4j as an example, gradle tries to fetch

offline/log4j/log4j/1.2.16/ivy-1.2.16.xml respectively
offline/log4j/log4j/1.2.16/log4j-1.2.16.jar

but the wharf layout looks like

offline/module-metadata/log4j/log4j/1.2.16/674f4c9c2688515137be3d2e70ce3583.ivy.xml respectively
offline/filestore/log4j/log4j/1.2.16/bundle/7999a63bfccbc7c247a9aea10d83d4272bd492c6/log4j-1.2.16.jar

Activity

  • All
  • Comments
  • History
  • Activity
  • TeamCity
  • Commits
  • Source
  • Reviews
Hide
Permalink
Peter Niederwieser added a comment - 22/Apr/12 10:17 AM

This isn't a supported scenario. The cache is considered an opaque, Gradle-managed data structure. You can't access it as an Ivy repository. (Also we don't use Wharf anymore.)

Show
Peter Niederwieser added a comment - 22/Apr/12 10:17 AM This isn't a supported scenario. The cache is considered an opaque, Gradle-managed data structure. You can't access it as an Ivy repository. (Also we don't use Wharf anymore.)

People

  • Assignee:
    Peter Niederwieser
    Reporter:
    Jochen Hinrichsen
Vote (0)
Watch (1)

Dates

  • Created:
    21/Apr/12 2:00 PM
    Updated:
    04/Jan/13 5:10 AM
    Resolved:
    22/Apr/12 10:18 AM
  • Atlassian JIRA (v5.0.3#729-sha1:bf569e4)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Gradle. Try JIRA - bug tracking software for your team.