{"action":"created","issue":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/1599","labels_url":"https://api.github.com/repos/robolectric/robolectric/issues/1599/labels{/name}","comments_url":"https://api.github.com/repos/robolectric/robolectric/issues/1599/comments","events_url":"https://api.github.com/repos/robolectric/robolectric/issues/1599/events","html_url":"https://github.com/robolectric/robolectric/pull/1599","id":59844128,"number":1599,"title":"Adding CompositeDependencyResolver ","user":{"login":"fhsilva","id":9677692,"avatar_url":"https://avatars.githubusercontent.com/u/9677692?v=3","gravatar_id":"","url":"https://api.github.com/users/fhsilva","html_url":"https://github.com/fhsilva","followers_url":"https://api.github.com/users/fhsilva/followers","following_url":"https://api.github.com/users/fhsilva/following{/other_user}","gists_url":"https://api.github.com/users/fhsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/fhsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhsilva/subscriptions","organizations_url":"https://api.github.com/users/fhsilva/orgs","repos_url":"https://api.github.com/users/fhsilva/repos","events_url":"https://api.github.com/users/fhsilva/events{/privacy}","received_events_url":"https://api.github.com/users/fhsilva/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-04T19:00:38Z","updated_at":"2015-03-29T17:47:19Z","closed_at":"2015-03-29T17:47:19Z","pull_request":{"url":"https://api.github.com/repos/robolectric/robolectric/pulls/1599","html_url":"https://github.com/robolectric/robolectric/pull/1599","diff_url":"https://github.com/robolectric/robolectric/pull/1599.diff","patch_url":"https://github.com/robolectric/robolectric/pull/1599.patch"},"body":"This is a new pull request for previous pull 1575.\r\n\r\nRobolectric has currently two variables controlling offline behavior:\r\n<b>robolectric.offline</b> and <b>robolectric.dependency.dir</b>\r\nBoth are tightly coupled, in the sense that one does not work without the other. They also do not solve all problems related with offline behavior. \r\nFor instance, I want Robolectric to use some dependencies from a local folder (offline behavior), while still downloading others from maven/sonatype (online behavior). With the current code, I can only either have all dependencies on a local folder or download all dependencies.\r\nIn my case, I only wanted to use my local shadows-core library and I didn't want to download all other dependencies to do that.\r\n\r\nBased on comments on pull 1575, here are the changes:\r\n- Crested a CompositeDependencyResolver that will try to resolve dependencies asking the resolvers in the order they were added.\r\n- Modify TestRunner to use CompositeDependencyResolver.\r\n- Checking local dependency folder at environment variable ROBOLECTRIC_DEPENDENCY_DIR a well as on system variable robolectric.dependency.dir\r\n"},"comment":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/comments/87450014","html_url":"https://github.com/robolectric/robolectric/pull/1599#issuecomment-87450014","issue_url":"https://api.github.com/repos/robolectric/robolectric/issues/1599","id":87450014,"user":{"login":"erd","id":184194,"avatar_url":"https://avatars.githubusercontent.com/u/184194?v=3","gravatar_id":"","url":"https://api.github.com/users/erd","html_url":"https://github.com/erd","followers_url":"https://api.github.com/users/erd/followers","following_url":"https://api.github.com/users/erd/following{/other_user}","gists_url":"https://api.github.com/users/erd/gists{/gist_id}","starred_url":"https://api.github.com/users/erd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erd/subscriptions","organizations_url":"https://api.github.com/users/erd/orgs","repos_url":"https://api.github.com/users/erd/repos","events_url":"https://api.github.com/users/erd/events{/privacy}","received_events_url":"https://api.github.com/users/erd/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T17:47:19Z","updated_at":"2015-03-29T17:47:19Z","body":"Feel free to re-open this PR if you get a chance to address the test failures I mentioned above."}}