{"action":"created","issue":{"url":"https://api.github.com/repos/gradle/gradle/issues/7336","repository_url":"https://api.github.com/repos/gradle/gradle","labels_url":"https://api.github.com/repos/gradle/gradle/issues/7336/labels{/name}","comments_url":"https://api.github.com/repos/gradle/gradle/issues/7336/comments","events_url":"https://api.github.com/repos/gradle/gradle/issues/7336/events","html_url":"https://github.com/gradle/gradle/issues/7336","id":368951718,"node_id":"MDU6SXNzdWUzNjg5NTE3MTg=","number":7336,"title":"Gradle no longer support proper location of artifacts when multiple repositories is provided","user":{"login":"big-guy","id":5387972,"node_id":"MDQ6VXNlcjUzODc5NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/5387972?v=4","gravatar_id":"","url":"https://api.github.com/users/big-guy","html_url":"https://github.com/big-guy","followers_url":"https://api.github.com/users/big-guy/followers","following_url":"https://api.github.com/users/big-guy/following{/other_user}","gists_url":"https://api.github.com/users/big-guy/gists{/gist_id}","starred_url":"https://api.github.com/users/big-guy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/big-guy/subscriptions","organizations_url":"https://api.github.com/users/big-guy/orgs","repos_url":"https://api.github.com/users/big-guy/repos","events_url":"https://api.github.com/users/big-guy/events{/privacy}","received_events_url":"https://api.github.com/users/big-guy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-11T04:49:37Z","updated_at":"2018-10-11T17:20:54Z","closed_at":"2018-10-11T07:17:03Z","author_association":"MEMBER","body":"@faiyat commented on [Wed Oct 10 2018](https://github.com/gradle/gradle-native/issues/889)\n\nGradle allow to specify multiple repositories for dependency resolution.  However, it always tries to look for all dependencies in the first repository.  If fail the build immediately if it couldn't find it there, instead of searching through all the repositories.\r\n\r\n### Expected Behavior\r\nIt should continue to search all repositories if it couldn't find in the first one, then second, etc.  The build should only fail after all repositories have been searched and not find in any of them.\r\n\r\n### Current Behavior\r\nThe artifact exists in the 2nd repository.  But the build failed immediately after it fail to find it in the 1st one.\r\n\r\n### Context\r\nWe use nexus to store our internally created artifacts.  We also proxy'd all public repositories in nexus as well, such as maven central, cloudera, etc.  In the repositories closure of gradle, we provided multiple urls to each of these repositories, internal or proxy'd.   And we expect Gradle to search in all of them before declare an artifact is not found.  \r\n\r\nFollowing is a snippet from our build script.  turn, turn_test are internal repositories that store artifacts created in house; while central, cloudera are proxies to public repositories.  Snapshots is our internal snapshot repositories.\r\n\r\n    repositories {\r\n    \t        maven {\r\n    \t\t      url 'http://maven.turn.com/service/local/repositories/turn/content/'\r\n    \t        }\r\n                maven {\r\n                      url 'http://maven.turn.com/service/local/repositories/central/content/'\r\n                }        \t\t\r\n\t\tmaven {\r\n\t\t\turl 'http://maven.turn.com/service/local/repositories/snapshots/content/'\r\n\t\t}\r\n\t\tmaven {\r\n\t\t\turl 'http://maven.turn.com/service/local/repositories/turn_test/content/'\r\n\t\t}\t\t\r\n\t\tmaven {\r\n\t\t\turl 'http://maven.turn.com/service/local/repositories/cloudera/content/'\r\n\t\t}\t\r\n    }\r\n\r\n### Steps to Reproduce (for bugs)\r\nIn our dependencies closure, one of the dependencies is:\r\ncompile \"org.codehaus.groovy:groovy-all:$groovyVersion.+\"\r\n\r\nWhen build executed, we are getting the following error:\r\n\r\n00:02:07.554 > Could not resolve org.codehaus.groovy:groovy-all:2.3.+.\r\n00:02:07.554   Required by:\r\n00:02:07.554       project :modules:kvstore\r\n00:02:07.554    > Failed to list versions for org.codehaus.groovy:groovy-all.\r\n00:02:07.554       > Unable to load Maven meta-data from http://maven.turn.com/service/local/repositories/turn/content/org/codehaus/groovy/groovy-all/maven-metadata.xml.\r\n00:02:07.554          > Could not get resource 'http://maven.turn.com/service/local/repositories/turn/content/org/codehaus/groovy/groovy-all/maven-metadata.xml'.\r\n00:02:07.555             > Could not GET 'http://maven.turn.com/service/local/repositories/turn/content/org/codehaus/groovy/groovy-all/maven-metadata.xml'.\r\n00:02:07.555                > Read timed out\r\n\r\nwhere the groovy-all artifact is available in maven central.  But it exited after failed to find it in turn repository.\r\n\r\n### Your Environment\r\nWe have Gradle 4.5.1.  Java 1.80.  We are using nexus to store our artifacts.\n\n"},"comment":{"url":"https://api.github.com/repos/gradle/gradle/issues/comments/429043029","html_url":"https://github.com/gradle/gradle/issues/7336#issuecomment-429043029","issue_url":"https://api.github.com/repos/gradle/gradle/issues/7336","id":429043029,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTA0MzAyOQ==","user":{"login":"faiyat","id":7938448,"node_id":"MDQ6VXNlcjc5Mzg0NDg=","avatar_url":"https://avatars2.githubusercontent.com/u/7938448?v=4","gravatar_id":"","url":"https://api.github.com/users/faiyat","html_url":"https://github.com/faiyat","followers_url":"https://api.github.com/users/faiyat/followers","following_url":"https://api.github.com/users/faiyat/following{/other_user}","gists_url":"https://api.github.com/users/faiyat/gists{/gist_id}","starred_url":"https://api.github.com/users/faiyat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faiyat/subscriptions","organizations_url":"https://api.github.com/users/faiyat/orgs","repos_url":"https://api.github.com/users/faiyat/repos","events_url":"https://api.github.com/users/faiyat/events{/privacy}","received_events_url":"https://api.github.com/users/faiyat/received_events","type":"User","site_admin":false},"created_at":"2018-10-11T17:20:54Z","updated_at":"2018-10-11T17:20:54Z","author_association":"NONE","body":"Thanks for looking into this.  Does it mean Gradle no longer support\nmultiple repositories?  What if not all artifacts can be found in one\nrepository?\n\nThanks,\n\nVivian Zhang\n\n\n\n\n\nOn Thu, Oct 11, 2018 at 12:17 AM Stefan Oehme <notifications@github.com>\nwrote:\n\n> This is intentional, if the repository times out we don't just fall\n> through to the next, because that would lead to non-reproducible builds.\n> Timeouts were introduced in 4.3\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/gradle/gradle/issues/7336#issuecomment-428847349>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AHkhkFitJCxY1uDPXwJAmZljuJnhzKMLks5ujvCJgaJpZM4XWxrd>\n> .\n>\n"}}
{"actor":{"display_login":"faiyat"}}