{"action":"created","issue":{"url":"https://api.github.com/repos/gradle/gradle/issues/474","labels_url":"https://api.github.com/repos/gradle/gradle/issues/474/labels{/name}","comments_url":"https://api.github.com/repos/gradle/gradle/issues/474/comments","events_url":"https://api.github.com/repos/gradle/gradle/issues/474/events","html_url":"https://github.com/gradle/gradle/pull/474","id":92470039,"number":474,"title":"Gradle tooling: find the correct wrapper on project import","user":{"login":"idlsoft","id":762684,"avatar_url":"https://avatars.githubusercontent.com/u/762684?v=3","gravatar_id":"","url":"https://api.github.com/users/idlsoft","html_url":"https://github.com/idlsoft","followers_url":"https://api.github.com/users/idlsoft/followers","following_url":"https://api.github.com/users/idlsoft/following{/other_user}","gists_url":"https://api.github.com/users/idlsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/idlsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idlsoft/subscriptions","organizations_url":"https://api.github.com/users/idlsoft/orgs","repos_url":"https://api.github.com/users/idlsoft/repos","events_url":"https://api.github.com/users/idlsoft/events{/privacy}","received_events_url":"https://api.github.com/users/idlsoft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-01T19:46:46Z","updated_at":"2015-07-23T21:45:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gradle/gradle/pulls/474","html_url":"https://github.com/gradle/gradle/pull/474","diff_url":"https://github.com/gradle/gradle/pull/474.diff","patch_url":"https://github.com/gradle/gradle/pull/474.patch"},"body":"When importing projects in IDEA and using the \"Use default gradle wrapper\" option it looks for the gradle wrapper in the buildLayout.rootDirectory, and ignores the project directory.\r\nSo if there is a wrapper in the project dir and a settings.gradle in the parent the wrapper is not found.\r\nHowever it works just fine from command line, so the behavior is inconsistent."},"comment":{"url":"https://api.github.com/repos/gradle/gradle/issues/comments/124247974","html_url":"https://github.com/gradle/gradle/pull/474#issuecomment-124247974","issue_url":"https://api.github.com/repos/gradle/gradle/issues/474","id":124247974,"user":{"login":"idlsoft","id":762684,"avatar_url":"https://avatars.githubusercontent.com/u/762684?v=3","gravatar_id":"","url":"https://api.github.com/users/idlsoft","html_url":"https://github.com/idlsoft","followers_url":"https://api.github.com/users/idlsoft/followers","following_url":"https://api.github.com/users/idlsoft/following{/other_user}","gists_url":"https://api.github.com/users/idlsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/idlsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idlsoft/subscriptions","organizations_url":"https://api.github.com/users/idlsoft/orgs","repos_url":"https://api.github.com/users/idlsoft/repos","events_url":"https://api.github.com/users/idlsoft/events{/privacy}","received_events_url":"https://api.github.com/users/idlsoft/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T21:45:30Z","updated_at":"2015-07-23T21:45:30Z","body":"I'll try but that code was there before, I added a few lines above it."}}